nvmf: disable keep alive timer during shutdown
From the time a shutdown is initiated the controller shall disable Keep Alive timer. Signed-off-by: Jacek Kalwas <jacek.kalwas@intel.com> Change-Id: Id499dabce1913b9da2f0b3fd961fdfc8b621afa9 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3462 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
This commit is contained in:
parent
71cd42e139
commit
c322453ccc
@ -860,6 +860,10 @@ nvmf_prop_set_cc(struct spdk_nvmf_ctrlr *ctrlr, uint32_t value)
|
||||
nvmf_ctrlr_disconnect_io_qpairs_on_pg,
|
||||
ctrlr,
|
||||
nvmf_ctrlr_cc_shn_done);
|
||||
|
||||
/* From the time a shutdown is initiated the controller shall disable
|
||||
* Keep Alive timer */
|
||||
nvmf_ctrlr_stop_keep_alive_timer(ctrlr);
|
||||
} else if (cc.bits.shn == 0) {
|
||||
ctrlr->vcprop.cc.bits.shn = 0;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user