blk-mq: turn WARN_ON in __blk_mq_run_hw_queue into printk
authorMing Lei <ming.lei@redhat.com>
Wed, 17 Jan 2018 16:41:52 +0000 (00:41 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 17 Jan 2018 16:46:27 +0000 (09:46 -0700)
commit7df938fbc4ee641e70e05002ac67c24b19e86e74
tree4058ba173eb411422482125e14e7bb12b70c8b38
parent7bed45954b95601230ebf387d3e4e20e4a3cc025
blk-mq: turn WARN_ON in __blk_mq_run_hw_queue into printk

We know this WARN_ON is harmless and in reality it may be trigged,
so convert it to printk() and dump_stack() to avoid to confusing
people.

Also add comment about two releated races here.

Cc: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: Stefan Haberland <sth@linux.vnet.ibm.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: "jianchao.wang" <jianchao.w.wang@oracle.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c