diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2022-08-30 15:07:54 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2022-10-03 23:54:46 -0400 |
commit | 8cd358f239097fec2a021d4a7f71c44ef77aa8f3 (patch) | |
tree | 573c94cc56986bc0b38e05b84c6abecba7e4fc97 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 4ff0188fe6977e351d92da10923b15c138bb7208 (diff) |
six locks: Simplify six_optimistic_spin()
With the new method where the thread doing the wakeup after unlock takes
the lock on behalf of the thread waiting for the lock, we don't want to
spin calling trylock() anymore - we can instead spin on
wait->lock_acquired, and not have to touch the lock's cacheline.
Also, osq_lock doesn't make much sense for six locks; multiple readers
may be waiting on a single thread to drop the write lock, and dropping
it simplifies the code a bit more.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions