linux/fs/bcachefs
Kent Overstreet 61b85cb0d7 bcachefs: six locks: Fix lost wakeup
In percpu reader mode, trylock() for read had a lost wakeup: on failure
to get the lock, we may have caused a writer to fail to get the lock,
because we temporarily elevated the reader count.

We need to check for waiters after decrementing the read count - not
before.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-11-14 23:44:44 -05:00
..
2023-11-14 23:44:43 -05:00
2023-11-05 13:12:18 -05:00
2023-11-05 13:12:08 -05:00
2023-11-14 23:44:44 -05:00
2023-11-05 13:12:08 -05:00
2023-11-05 13:12:08 -05:00
2023-11-05 13:12:08 -05:00