diff options
author | Chao Leng <lengchao@huawei.com> | 2021-01-21 04:32:36 +0100 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2021-02-02 10:26:12 +0100 |
commit | 2547906982e2e6a0d42f8957f55af5bb51a7e55f (patch) | |
tree | 7892ea68af7dd2155a8bf15236c50a91ee918000 /drivers/nvme/host/nvme.h | |
parent | nvme-core: get rid of the extra space (diff) | |
download | linux-2547906982e2e6a0d42f8957f55af5bb51a7e55f.tar.xz linux-2547906982e2e6a0d42f8957f55af5bb51a7e55f.zip |
nvme-core: add cancel tagset helpers
Add nvme_cancel_tagset and nvme_cancel_admin_tagset for tear down and
reconnection error handling.
Signed-off-by: Chao Leng <lengchao@huawei.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/nvme/host/nvme.h')
-rw-r--r-- | drivers/nvme/host/nvme.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/nvme/host/nvme.h b/drivers/nvme/host/nvme.h index 88a6b97247f5..a72f07181091 100644 --- a/drivers/nvme/host/nvme.h +++ b/drivers/nvme/host/nvme.h @@ -576,6 +576,8 @@ static inline bool nvme_is_aen_req(u16 qid, __u16 command_id) void nvme_complete_rq(struct request *req); bool nvme_cancel_request(struct request *req, void *data, bool reserved); +void nvme_cancel_tagset(struct nvme_ctrl *ctrl); +void nvme_cancel_admin_tagset(struct nvme_ctrl *ctrl); bool nvme_change_ctrl_state(struct nvme_ctrl *ctrl, enum nvme_ctrl_state new_state); bool nvme_wait_reset(struct nvme_ctrl *ctrl); |