Skip to content

Commit 4212f4e

Browse files
sagigrimbergChristoph Hellwig
authored andcommitted
nvme: document nvme controller states
We are starting to see some non-trivial states so lets start documenting them. Signed-off-by: Sagi Grimberg <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
1 parent 7774e77 commit 4212f4e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

drivers/nvme/host/nvme.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,20 @@ static inline u16 nvme_req_qid(struct request *req)
181181
*/
182182
#define NVME_QUIRK_DELAY_AMOUNT 2300
183183

184+
/*
185+
* enum nvme_ctrl_state: Controller state
186+
*
187+
* @NVME_CTRL_NEW: New controller just allocated, initial state
188+
* @NVME_CTRL_LIVE: Controller is connected and I/O capable
189+
* @NVME_CTRL_RESETTING: Controller is resetting (or scheduled reset)
190+
* @NVME_CTRL_CONNECTING: Controller is disconnected, now connecting the
191+
* transport
192+
* @NVME_CTRL_DELETING: Controller is deleting (or scheduled deletion)
193+
* @NVME_CTRL_DEAD: Controller is non-present/unresponsive during
194+
* shutdown or removal. In this case we forcibly
195+
* kill all inflight I/O as they have no chance to
196+
* complete
197+
*/
184198
enum nvme_ctrl_state {
185199
NVME_CTRL_NEW,
186200
NVME_CTRL_LIVE,

0 commit comments

Comments
 (0)