From: Keith Busch <kbusch@xxxxxxxxxx> changes from v2: Adding a prep patch that fixes a condition that can leave the wait_cnt at the wrong value. Changed the number to wake up to account for the number of bits released in previous batches instead of just the current batch. Keith Busch (2): sbitmap: check waitqueue_active prior to decrement sbitmap: fix batched wait_cnt accounting block/blk-mq-tag.c | 2 +- include/linux/sbitmap.h | 3 ++- lib/sbitmap.c | 36 ++++++++++++++++++++---------------- 3 files changed, 23 insertions(+), 18 deletions(-) -- 2.30.2