nvme: export fast_io_fail_tmo to sysfs
authorDaniel Wagner <dwagner@suse.de>
Thu, 1 Apr 2021 09:54:12 +0000 (11:54 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 2 Apr 2021 16:48:29 +0000 (18:48 +0200)
commit09fbed636382867733c1713c9fe2fa2926dac537
treec3d77bfe81d5d3f90cb475612844c3f03121ccfc
parent25a64e4e7ef6da605a86ec1bff18d2c3c6ed5329
nvme: export fast_io_fail_tmo to sysfs

Commit 8c4dfea97f15 ("nvme-fabrics: reject I/O to offline device")
introduced fast_io_fail_tmo but didn't export the value to sysfs. The
value can be set during the 'nvme connect'. Export the timeout value
to user space via sysfs to allow runtime configuration.

Cc: Victor Gladkov <Victor.Gladkov@kioxia.com>
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Reviewed-by: Ewan D. Milne <emilne@redhat.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Himanshu Madhani <himanshu.madhaani@oracle.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c