nvmet: reset keep alive timer in controller enable
authorMax Gurtuvoy <maxg@mellanox.com>
Tue, 19 Jun 2018 12:45:33 +0000 (15:45 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Aug 2018 11:12:30 +0000 (13:12 +0200)
commit313d65a648d07bd5081205b4655750efd8f67252
tree67a3709c009c5c40a643d86e3d253b540be641cd
parent6f37f7b62baa6a71d7f3f298acb64de51275e724
nvmet: reset keep alive timer in controller enable

[ Upstream commit d68a90e148f5a82aa67654c5012071e31c0e4baa ]

Controllers that are not yet enabled should not really enforce keep alive
timeouts, but we still want to track a timeout and cleanup in case a host
died before it enabled the controller.  Hence, simply reset the keep
alive timer when the controller is enabled.

Suggested-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvme/target/core.c