]> Gentwo Git Trees - linux/.git/commit
nvme: Use non zero KATO for persistent discovery connections
authorAlistair Francis <alistair.francis@wdc.com>
Tue, 2 Sep 2025 03:52:11 +0000 (13:52 +1000)
committerKeith Busch <kbusch@kernel.org>
Tue, 23 Sep 2025 22:38:28 +0000 (15:38 -0700)
commit2e482655019ab6fcfe8865b62432c6d03f0b5f80
tree61753ae9ed4bc8296eb0bd1f1b99b95cd8f415a4
parent20015410fbdff3633418484165c694f6ceeb855b
nvme: Use non zero KATO for persistent discovery connections

The NVMe Base Specification 2.1 states that:

"""
A host requests an explicit persistent connection ... by specifying a
non-zero Keep Alive Timer value in the Connect command.
"""

As such if we are starting a persistent connection to a discovery
controller and the KATO is currently 0 we need to update KATO to a non
zero value to avoid continuous timeouts on the target.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/core.c