nvme: flush reset_work before safely continuing with delete operation
authorSagi Grimberg <sagi@grimberg.me>
Sun, 29 Oct 2017 12:21:02 +0000 (14:21 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 1 Nov 2017 15:28:17 +0000 (16:28 +0100)
commit4054637c9b4fbe9feef0cf6f2516ef00d8053560
tree875cf372bd2953c2c1035f8fd520b9e9160793f4
parent12fa1304badde26c5cf495d5af48df22a31c3a52
nvme: flush reset_work before safely continuing with delete operation

Prevent racing controller reset and delete flows. reset_work must not
ever self-requeue so flushing it suffices.

Reported-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c
drivers/nvme/host/fc.c