From mboxrd@z Thu Jan 1 00:00:00 1970 From: hch@lst.de (Christoph Hellwig) Date: Tue, 17 Apr 2018 17:24:07 +0200 Subject: [PATCH 2/2] nvme: start keep alive timer when enabling the controller In-Reply-To: <9529fb23-ba35-0f41-7eda-2439612e1cd6@grimberg.me> References: <20180415084741.4235-1-sagi@grimberg.me> <20180415084741.4235-2-sagi@grimberg.me> <9529fb23-ba35-0f41-7eda-2439612e1cd6@grimberg.me> Message-ID: <20180417152407.GB25823@lst.de> On Sun, Apr 15, 2018@01:17:58PM +0300, Sagi Grimberg wrote: >> Christoph suggested to add the keep-alive stop to the disable/shutdown (I >> guess we need to add it to both, right ?) and in the target side to start >> expecting also once ctrl is enabled and stop when disabled. > > I don't necessarily think we need to. Also, its better to do this sooner > rather than later (stop_ctrl happens before disable/shutdown) and also, > disable/shutdown might not even execute if the transport is not connected. I was suggesting to do it in disable as that is the point at which we can't send one for sure. But yes, I suspect stop_ctrl is even better due to the reasons Sagi stated. Sorry for the confusion.