aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/nvme/host/nvme.h
diff options
context:
space:
mode:
authorNitzan Carmi <nitzanc@mellanox.com>2018-03-20 11:07:30 +0000
committerJens Axboe <axboe@kernel.dk>2018-03-26 08:53:43 -0600
commitb435ecea2a4d0b5cd5be2c5497c3461435f3f3a7 (patch)
tree80a22ddb03658c3b9f7c64d82f254ede50929b1b /drivers/nvme/host/nvme.h
parentnvme-rdma: Allow DELETING state change failure in error_recovery (diff)
downloadlinux-dev-b435ecea2a4d0b5cd5be2c5497c3461435f3f3a7.tar.xz
linux-dev-b435ecea2a4d0b5cd5be2c5497c3461435f3f3a7.zip
nvme: Add .stop_ctrl to nvme ctrl ops
For consistancy reasons, any fabric-specific works (e.g error recovery/reconnect) should be canceled in nvme_stop_ctrl, as for all other NVMe pending works (e.g. scan, keep alive). The patch aims to simplify the logic of the code, as we now only rely on a vague demand from any fabric to flush its private workqueues at the beginning of .delete_ctrl op. Signed-off-by: Nitzan Carmi <nitzanc@mellanox.com> Reviewed-by: Max Gurtovoy <maxg@mellanox.com> Signed-off-by: Keith Busch <keith.busch@intel.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/nvme/host/nvme.h')
-rw-r--r--drivers/nvme/host/nvme.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nvme/host/nvme.h b/drivers/nvme/host/nvme.h
index 29942b1892f7..741e3c79bbe9 100644
--- a/drivers/nvme/host/nvme.h
+++ b/drivers/nvme/host/nvme.h
@@ -313,6 +313,7 @@ struct nvme_ctrl_ops {
void (*delete_ctrl)(struct nvme_ctrl *ctrl);
int (*get_address)(struct nvme_ctrl *ctrl, char *buf, int size);
int (*reinit_request)(void *data, struct request *rq);
+ void (*stop_ctrl)(struct nvme_ctrl *ctrl);
};
#ifdef CONFIG_FAULT_INJECTION_DEBUG_FS