block-mq: don't re-queue if we get a queue error
authorJosef Bacik <josef@toxicpanda.com>
Tue, 28 Mar 2017 20:37:52 +0000 (16:37 -0400)
committerJens Axboe <axboe@fb.com>
Wed, 29 Mar 2017 19:18:18 +0000 (13:18 -0600)
commitb58e176914c4786fd28edfc44e7174310613fc31
tree845c56600c0fe27279c2bfe172bd2a3a5e4611e5
parent457e490f2b7417564b681992e4eee355e1dcbb14
block-mq: don't re-queue if we get a queue error

When try to issue a request directly and we fail we will requeue the
request, but call blk_mq_end_request() as well.  This leads to the
completed request being on a queuelist and getting ended twice, which
causes list corruption in schedulers and other shenanigans.

Signed-off-by: Josef Bacik <jbacik@fb.com>
Reviewed-by: Ming Lei <tom.leiming@gmail.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c