]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-pci: introduce RECONNECTING state to mark initializing procedure
authorJianchao Wang <jianchao.w.wang@oracle.com>
Mon, 22 Jan 2018 14:03:16 +0000 (22:03 +0800)
committerChristoph Hellwig <hch@lst.de>
Fri, 26 Jan 2018 07:12:04 +0000 (08:12 +0100)
commit898e9d6baeb12363944b23c1ea108fa93c31bb86
treef0e7997996e3861e4673e94dbc81fce2c442e0a8
parent57590dd5c83404b1ad991eeaf5dc41378ff86e86
nvme-pci: introduce RECONNECTING state to mark initializing procedure

After Sagi's commit (nvme-rdma: fix concurrent reset and reconnect),
both nvme-fc/rdma have following pattern:
RESETTING    - quiesce blk-mq queues, teardown and delete queues/
               connections, clear out outstanding IO requests...
RECONNECTING - establish new queues/connections and some other
               initializing things.
Introduce RECONNECTING to nvme-pci transport to do the same mark.
Then we get a coherent state definition among nvme pci/rdma/fc
transports.

Suggested-by: James Smart <james.smart@broadcom.com>
Reviewed-by: James Smart <james.smart@broadcom.com>
Reviewed-by: Reviewed-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jianchao Wang <jianchao.w.wang@oracle.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c
drivers/nvme/host/pci.c