nvme: add 'kato' sysfs attribute
authorHannes Reinecke <hare@suse.de>
Fri, 16 Apr 2021 11:46:21 +0000 (13:46 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 21 Apr 2021 17:13:15 +0000 (19:13 +0200)
commit74c22990f08c9f922f775939a4ebc814ca2c49eb
treec226115a5d6ec360d6cb1d4427054ad0eadab1c9
parenta70b81bd4d9d2d6c05cfe6ef2a10bccc2e04357a
nvme: add 'kato' sysfs attribute

Add a 'kato' controller sysfs attribute to display the current
keep-alive timeout value (if any). This allows userspace to identify
persistent discovery controllers, as these will have a non-zero
KATO value.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c