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)
commit8a31c0bb3ad7e6a48e2e6301881634338a68efa8
tree875cf372bd2953c2c1035f8fd520b9e9160793f4
parent2871cd47e334bf26e45c8b144db7638a8350ce70
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