]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit97175682ee9d88a61076cc1fd9218efa97f843cb
treec3d77bfe81d5d3f90cb475612844c3f03121ccfc
parentcb3f5614aa22321939d007da392b408a0ab17dcc
nvme: export fast_io_fail_tmo to sysfs

Commit dd087ec9b51b ("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