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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Apr 2018 09:02:07 +0000 (11:02 +0200)
commita1dfcb01e374729f6920c3c07867914c5e848fb4
tree37e456b3865f04c7d108dd1e0c347356935559a2
parent2e102fe86ede237ca875da9336648caa5e2fcac6
blk-mq: turn WARN_ON in __blk_mq_run_hw_queue into printk

[ Upstream commit 7df938fbc4ee641e70e05002ac67c24b19e86e74 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
block/blk-mq.c