diff options
author | Sagi Grimberg <sagi@grimberg.me> | 2021-05-25 17:49:05 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2021-05-26 16:18:22 +0200 |
commit | aaeadd7075dc9e184bc7876e9dd7b3bada771df2 (patch) | |
tree | 85bf27ca7f3e8a8b161e26d6c964001992055add /drivers/nvme/target/nvmet.h | |
parent | nvmet-tcp: fix inline data size comparison in nvmet_tcp_queue_response (diff) | |
download | linux-aaeadd7075dc9e184bc7876e9dd7b3bada771df2.tar.xz linux-aaeadd7075dc9e184bc7876e9dd7b3bada771df2.zip |
nvmet: fix false keep-alive timeout when a controller is torn down
Controller teardown flow may take some time in case it has many I/O
queues, and the host may not send us keep-alive during this period.
Hence reset the traffic based keep-alive timer so we don't trigger
a controller teardown as a result of a keep-alive expiration.
Reported-by: Yi Zhang <yi.zhang@redhat.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Tested-by: Yi Zhang <yi.zhang@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/nvme/target/nvmet.h')
-rw-r--r-- | drivers/nvme/target/nvmet.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/target/nvmet.h b/drivers/nvme/target/nvmet.h index d69a409515d6..53aea9a8056e 100644 --- a/drivers/nvme/target/nvmet.h +++ b/drivers/nvme/target/nvmet.h @@ -167,7 +167,7 @@ struct nvmet_ctrl { struct nvmet_subsys *subsys; struct nvmet_sq **sqs; - bool cmd_seen; + bool reset_tbkas; struct mutex lock; u64 cap; |