diff options
author | Sagi Grimberg <sagi@grimberg.me> | 2020-07-23 02:32:18 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2020-07-29 08:45:19 +0300 |
commit | 4212f4e94633f3403c3871d11213badc50b3f6e4 (patch) | |
tree | 346d20314e638b8bf6cffbea1d999322c4763a97 /drivers | |
parent | 7774e77ebedcfeeac8cce61533b590269650dcf7 (diff) | |
download | linux-4212f4e94633f3403c3871d11213badc50b3f6e4.tar.xz |
nvme: document nvme controller states
We are starting to see some non-trivial states
so lets start documenting them.
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/nvme/host/nvme.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/nvme/host/nvme.h b/drivers/nvme/host/nvme.h index 2ee91a3dd8e0..92629758b77c 100644 --- a/drivers/nvme/host/nvme.h +++ b/drivers/nvme/host/nvme.h @@ -181,6 +181,20 @@ static inline u16 nvme_req_qid(struct request *req) */ #define NVME_QUIRK_DELAY_AMOUNT 2300 +/* + * enum nvme_ctrl_state: Controller state + * + * @NVME_CTRL_NEW: New controller just allocated, initial state + * @NVME_CTRL_LIVE: Controller is connected and I/O capable + * @NVME_CTRL_RESETTING: Controller is resetting (or scheduled reset) + * @NVME_CTRL_CONNECTING: Controller is disconnected, now connecting the + * transport + * @NVME_CTRL_DELETING: Controller is deleting (or scheduled deletion) + * @NVME_CTRL_DEAD: Controller is non-present/unresponsive during + * shutdown or removal. In this case we forcibly + * kill all inflight I/O as they have no chance to + * complete + */ enum nvme_ctrl_state { NVME_CTRL_NEW, NVME_CTRL_LIVE, |