nvmf: association timer triggered on reset
Signed-off-by: Jacek Kalwas <jacek.kalwas@intel.com> Change-Id: I85e886e8912009ec5761b5cd0e5b5cef87b25d6e Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3463 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
This commit is contained in:
parent
c322453ccc
commit
47ce1fe307
@ -790,6 +790,10 @@ nvmf_ctrlr_cc_reset_done(struct spdk_io_channel_iter *i, int status)
|
||||
ctrlr->vcprop.cc.raw = 0;
|
||||
ctrlr->vcprop.csts.raw = 0;
|
||||
|
||||
/* After CC.EN transitions to 0 (due to shutdown or reset), the association
|
||||
* between the host and controller shall be preserved for at least 2 minutes */
|
||||
ctrlr->association_timer = SPDK_POLLER_REGISTER(nvmf_ctrlr_association_remove, ctrlr,
|
||||
ctrlr->admin_qpair->transport->opts.association_timeout);
|
||||
}
|
||||
|
||||
const struct spdk_nvmf_registers *
|
||||
|
Loading…
Reference in New Issue
Block a user