nvme: consolidate common code from ->reset_work
authorChristoph Hellwig <hch@lst.de>
Sun, 29 Oct 2017 08:44:31 +0000 (10:44 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 1 Nov 2017 15:28:06 +0000 (16:28 +0100)
commit6cd53d14aaa006b5543f06fbf5e1680ce61c6c6e
tree015c68a3118f143e8114fdb25432186164d0b03f
parente9bc25874c0bde47b65c58ccd01e339a603a7f40
nvme: consolidate common code from ->reset_work

No change in behavior except that the FC code cancels two work items a
little later now.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c
drivers/nvme/host/fc.c
drivers/nvme/host/rdma.c
drivers/nvme/target/loop.c