This set is to fix a hang case if blk-iolatency is in use. The 1st patch explains the hang problem with more details and provides a fix. The 2nd patch adds a warning for unexpected inflight counter. The 3rd patch is a cleanup of blk_mq_freeze_queue. v2: reorder the actual fix to the first patch. Liu Bo (3): blk-iolatency: fix IO hang due to negative inflight counter Blk-iolatency: warn on negative inflight IO counter blk-mq: remove duplicated definition of blk_mq_freeze_queue block/blk-iolatency.c | 56 ++++++++++++++++++++++++++++++++++++------- block/blk-mq.h | 1 - 2 files changed, 48 insertions(+), 9 deletions(-) -- 2.20.1.2.gb21ebb6