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:06:45 +0000 (13:06 +0200)
commitcf10109138be1779448b133cfc2a7e933c43ff7e
tree205a4cfdac5c4a766c272e4b4156032025307a3a
parent7458a7a177cb9174849e9c3ed32df7179c70ccd8
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