Commit 130d733a authored by Bart Van Assche's avatar Bart Van Assche Committed by Jens Axboe

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
Signed-off-by: default avatarBart Van Assche <>
Cc: Christoph Hellwig <>
Cc: Hannes Reinecke <>
Cc: Johannes Thumshirn <>
Signed-off-by: default avatarJens Axboe <>
parent 2f54a613
......@@ -68,6 +68,7 @@ EXPORT_SYMBOL_GPL(blk_queue_rq_timeout);
void blk_queue_rq_timed_out(struct request_queue *q, rq_timed_out_fn *fn)
q->rq_timed_out_fn = fn;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment