From: Omar Sandoval <osandov@xxxxxx> Two fixlets inspired by Tejun's patch (https://patchwork.kernel.org/patch/10226749/). Patch 2 is what we discussed on that patch, patch 1 is a small preparation. Omar Sandoval (2): block: clear ctx pending bit under ctx lock sbitmap: use test_and_set_bit_lock()/clear_bit_unlock() block/blk-mq.c | 2 +- include/linux/sbitmap.h | 8 ++++++++ lib/sbitmap.c | 10 +++++----- 3 files changed, 14 insertions(+), 6 deletions(-) -- 2.16.2