]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - drivers/nvme/host/fc.c
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)
commit8730c1ddb69bdeeb10c1f613a4e15e95862b1981
treedd56d3a328624814e8cc15403ba11ee0a03ae9cc
parent87fd125344d68adf7699ec7396aa9f905ce79a80
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: 4cff280a5fcc ("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