summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorKeith Busch <kbusch@kernel.org>2022-09-09 20:40:22 +0200
committerJens Axboe <axboe@kernel.dk>2022-09-12 08:10:34 +0200
commit4acb83417cadfdcbe64215f9d0ddcf3132af808e (patch)
tree45bdd14acf29ddc9b49cbb26e30323446d4aaeb6 /tools
parentsbitmap: Use atomic_long_try_cmpxchg in __sbitmap_queue_get_batch (diff)
downloadlinux-4acb83417cadfdcbe64215f9d0ddcf3132af808e.tar.xz
linux-4acb83417cadfdcbe64215f9d0ddcf3132af808e.zip
sbitmap: fix batched wait_cnt accounting
Batched completions can clear multiple bits, but we're only decrementing the wait_cnt by one each time. This can cause waiters to never be woken, stalling IO. Use the batched count instead. Link: https://bugzilla.kernel.org/show_bug.cgi?id=215679 Signed-off-by: Keith Busch <kbusch@kernel.org> Link: https://lore.kernel.org/r/20220909184022.1709476-1-kbusch@fb.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions