]> git.baikalelectronics.ru Git - kernel.git/commit
block: Warn if blk_queue_rq_timed_out() is called for a blk-mq queue
authorBart Van Assche <bart.vanassche@wdc.com>
Wed, 23 Aug 2017 17:56:29 +0000 (10:56 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 23 Aug 2017 18:02:30 +0000 (12:02 -0600)
commitc2981633f714e94b121d691442c955900cef0de1
tree55af1bd8860198819d8654e0ae8e2629da627565
parentebc7fa772efcb0fb10e632186d516784d6939c75
block: Warn if blk_queue_rq_timed_out() is called for a blk-mq queue

The timeout handler set by blk_queue_rq_timed_out() is only used
in single queue mode. Calling this function for blk-mq drivers is
wrong. Hence issue a warning if this function is called by a blk-mq
driver.

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.de>
Cc: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-settings.c