Skip to content
Commit bcc816df authored by Dongli Zhang's avatar Dongli Zhang Committed by Jens Axboe
Browse files

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: ce5b009c ("block: improve logic around when to sort a plug list")
Reviewed-by: default avatarMing Lei <ming.lei@redhat.com>
Signed-off-by: default avatarDongli Zhang <dongli.zhang@oracle.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 58ccd2d3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment