commit | bcc816dfe51ab86ca94663c7b225f2d6eb0fddb9 | [log] [tgz] |
---|---|---|
author | Dongli Zhang <dongli.zhang@oracle.com> | Thu Apr 04 10:57:44 2019 +0800 |
committer | Jens Axboe <axboe@kernel.dk> | Thu Apr 04 08:37:34 2019 -0600 |
tree | 781a542bc2b440a299c9d41a1dd67bd39ce8f734 | |
parent | 58ccd2d31e502c37e108b285bf3d343eb00c235b [diff] |
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: ce5b009cff19 ("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>