nvmet: fix false keep-alive timeout when a controller is torn down
authorSagi Grimberg <sagi@grimberg.me>
Tue, 25 May 2021 15:49:05 +0000 (08:49 -0700)
committerChristoph Hellwig <hch@lst.de>
Wed, 26 May 2021 14:18:22 +0000 (16:18 +0200)
commitaaeadd7075dc9e184bc7876e9dd7b3bada771df2
tree85bf27ca7f3e8a8b161e26d6c964001992055add
parent25df1acd2d36eb72b14c3d00f6b861b1e00b3aab
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>
drivers/nvme/target/core.c
drivers/nvme/target/nvmet.h