blk-mq: fix failure to decrement plug count on single rq removal
authorJens Axboe <axboe@kernel.dk>
Wed, 28 Nov 2018 00:07:17 +0000 (17:07 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 28 Nov 2018 13:29:23 +0000 (06:29 -0700)
commit4711b57317f0ff5ca9fbd5e2df6c73b2c07ddc53
treef3e23d67110eaff30ca87ccdaa90c1c89672729e
parenta11f6ca9aef989b56cd31ff4ee2af4fb31a172ec
blk-mq: fix failure to decrement plug count on single rq removal

If we yank a 'same_queue_rq' request off the plug list, we should
also decrement the cached request count.

Fixes: 5f0ed774ed29 ("block: sum requests in the plug structure")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c