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)
commit130d733a616372ba5d375f9ca8da9378924b6889
tree55af1bd8860198819d8654e0ae8e2629da627565
parent2f54a613c9421ddd5897f861145ed0b8615a2ec4
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