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-10-22 17:10:12 -04:00
2023-10-22 17:10:10 -04:00
2023-10-31 12:18:37 -04:00
2023-10-31 12:18:37 -04:00
2023-11-01 21:11:08 -04:00
2023-10-22 17:10:12 -04:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:10:13 -04:00
2023-10-31 12:18:37 -04:00
2023-11-01 21:11:08 -04:00
2023-10-22 17:10:12 -04:00
2023-10-22 17:09:53 -04:00
2023-11-01 21:11:08 -04:00
2023-10-31 12:18:37 -04:00
2023-10-22 17:09:57 -04:00
2023-11-01 21:11:05 -04:00
2023-11-01 21:11:05 -04:00
2023-10-22 17:09:32 -04:00
2023-10-31 12:18:37 -04:00
2023-10-31 12:18:37 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-10-22 17:09:54 -04:00
2023-10-22 17:10:13 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-10-22 17:09:45 -04:00
2023-10-22 17:10:10 -04:00
2023-10-22 17:10:10 -04:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:10:12 -04:00
2023-11-14 23:44:43 -05:00
2023-10-22 17:10:15 -04:00
2023-11-05 13:12:18 -05:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-10-22 17:10:12 -04:00
2023-10-22 17:10:12 -04:00
2023-10-22 17:10:12 -04:00
2023-10-22 17:09:56 -04:00
2023-10-22 17:10:03 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-10-22 17:10:13 -04:00
2023-10-31 12:18:37 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:05 -04:00
2023-11-01 21:11:05 -04:00
2023-11-01 21:11:05 -04:00
2023-10-22 17:10:10 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-10-22 17:10:10 -04:00
2023-11-05 13:12:08 -05:00
2023-11-01 21:11:08 -04:00
2023-10-22 17:09:44 -04:00
2023-11-14 23:44:44 -05:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-11-05 13:12:08 -05:00
2023-11-01 21:11:08 -04:00
2023-10-22 17:10:10 -04:00
2023-10-22 17:09:32 -04:00
2023-10-31 12:18:38 -04:00
2023-11-05 13:12:08 -05:00
2023-11-05 13:12:08 -05:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:10:12 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00