]> asedeno.scripts.mit.edu Git - linux.git/commit
nvme: Add .stop_ctrl to nvme ctrl ops
authorNitzan Carmi <nitzanc@mellanox.com>
Tue, 20 Mar 2018 11:07:30 +0000 (11:07 +0000)
committerJens Axboe <axboe@kernel.dk>
Mon, 26 Mar 2018 14:53:43 +0000 (08:53 -0600)
commitb435ecea2a4d0b5cd5be2c5497c3461435f3f3a7
tree80a22ddb03658c3b9f7c64d82f254ede50929b1b
parent187c0832ee80250036adb386b5ffa8f4bcb0ff1e
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>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h
drivers/nvme/host/rdma.c