]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9fea7c68095f53208bfcbe397f9ee8104a18f9ee
tree85bf27ca7f3e8a8b161e26d6c964001992055add
parent46109dada38570ce11231b2c9787dfca3edd89c9
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