diff options
author | Tatsuya Sasaki <tatsuya6.sasaki@kioxia.com> | 2021-09-01 11:23:42 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2021-09-06 11:03:11 +0300 |
commit | b58da2d270dbcc67db73f15028774d27c85e16d7 (patch) | |
tree | aed70c2f304b25dfeb2ea583f49354d740ca53eb /include/scsi/libiscsi_tcp.h | |
parent | 1ba2e507f55c5b0cbde8c0fbfe0d9e39612a3e52 (diff) | |
download | linux-b58da2d270dbcc67db73f15028774d27c85e16d7.tar.xz |
nvme: update keep alive interval when kato is modified
Currently the connection between host and NVMe-oF target gets
disconnected by keep-alive timeout when a user connects to a target
with a relatively large kato value and then sets the smaller kato
with a set features command (e.g. connects with 60 seconds kato value
and then sets 10 seconds kato value).
The cause is that keep alive command interval on the host, which is
defined as unsigned int kato in nvme_ctrl structure, does not follow
the kato value changes.
This patch updates the keep alive interval in the following steps when
the kato is modified by a set features command: stops the keep alive
work queue, then sets the kato as new timer value and re-start the queue.
Signed-off-by: Tatsuya Sasaki <tatsuya6.sasaki@kioxia.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'include/scsi/libiscsi_tcp.h')
0 files changed, 0 insertions, 0 deletions