]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: do not reset plug->rq_count before the list is sorted
authorDongli Zhang <dongli.zhang@oracle.com>
Thu, 4 Apr 2019 02:57:44 +0000 (10:57 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 4 Apr 2019 14:37:34 +0000 (08:37 -0600)
commit7ae885990b9bd19b25bb2f3182f784c74d181e0a
tree781a542bc2b440a299c9d41a1dd67bd39ce8f734
parentba057af631cce49cf71cd0e18e86f7ca314f1ffd
blk-mq: do not reset plug->rq_count before the list is sorted

We would never be able to sort the list if we first reset plug->rq_count
which is used in conditional check later.

Fixes: a5993aca1eb6 ("block: improve logic around when to sort a plug list")
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Dongli Zhang <dongli.zhang@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c