blk-mq: Do not invoke .queue_rq() for a stopped queue
authorBart Van Assche <bart.vanassche@sandisk.com>
Sat, 29 Oct 2016 00:18:48 +0000 (17:18 -0700)
committerJens Axboe <axboe@fb.com>
Wed, 2 Nov 2016 18:50:19 +0000 (12:50 -0600)
commitbc27c01b5c46d3bfec42c96537c7a3fae0bb2cc4
treea0ae0f958956c65285b906e911f6b0f7df69fc0b
parent2cefe4dbaadf83b236caab46705b4b5a4958e3b6
blk-mq: Do not invoke .queue_rq() for a stopped queue

The meaning of the BLK_MQ_S_STOPPED flag is "do not call
.queue_rq()". Hence modify blk_mq_make_request() such that requests
are queued instead of issued if a queue has been stopped.

Reported-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Ming Lei <tom.leiming@gmail.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Cc: <stable@vger.kernel.org>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c