Skip to content
Commit 16ede669 authored by Keith Busch's avatar Keith Busch Committed by Jens Axboe
Browse files

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: default avatarKeith Busch <kbusch@kernel.org>
Link: https://lore.kernel.org/r/20220825145312.1217900-1-kbusch@fb.com
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent ddbfc34f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment