]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
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)
committerLuis Henriques <luis.henriques@canonical.com>
Tue, 10 Jan 2017 17:43:08 +0000 (17:43 +0000)
commitb455d7c18c90005af165b0eb933c2eee6a22edfa
tree2553af8829a377da2783c76c5c6eb8762f8c6118
parent29e3ecf83b7f73710c324a31b6b7c759dcc8aff9
blk-mq: Do not invoke .queue_rq() for a stopped queue

BugLink: http://bugs.launchpad.net/bugs/1654602
commit bc27c01b5c46d3bfec42c96537c7a3fae0bb2cc4 upstream.

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>
Signed-off-by: Jens Axboe <axboe@fb.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
block/blk-mq.c