]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-fc: use separate work queue to avoid warning
authorHannes Reinecke <hare@suse.de>
Fri, 3 May 2019 09:43:52 +0000 (11:43 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 13 May 2019 14:00:03 +0000 (16:00 +0200)
commitf521523b3cd5b43207d02152a2c1a0b585a5cd1c
treedd56d3a328624814e8cc15403ba11ee0a03ae9cc
parenta2a43e43c0bc871299d4b7c7ebb73b2394c40f49
nvme-fc: use separate work queue to avoid warning

When tearing down a controller the following warning is issued:

WARNING: CPU: 0 PID: 30681 at ../kernel/workqueue.c:2418 check_flush_dependency

This happens as the err_work workqueue item is scheduled on the
system workqueue (which has WQ_MEM_RECLAIM not set), but is flushed
from a workqueue which has WQ_MEM_RECLAIM set.

Fix this by providing an FC-NVMe specific workqueue.

Fixes: e9dd88b18d1f ("nvme-fc: resolve io failures during connect")
Signed-off-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/fc.c