Commit 8cacb011 authored by Daniel Wagner's avatar Daniel Wagner Committed by Yang Yingliang
Browse files

nvme: export fast_io_fail_tmo to sysfs

mainline inclusion
from mainline-v5.13-rc1
commit 09fbed63
category: bugfix
bugzilla: NA
CVE: NA
Link: https://gitee.com/openeuler/kernel/issues/I4JFPM?from=project-issue



-------------------------------------------------

Commit 8c4dfea9 ("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: default avatarDaniel Wagner <dwagner@suse.de>
Reviewed-by: default avatarEwan D. Milne <emilne@redhat.com>
Reviewed-by: default avatarSagi Grimberg <sagi@grimberg.me>
Reviewed-by: default avatarHimanshu Madhani <himanshu.madhaani@oracle.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>

conflicts:
drivers/nvme/host/core.c
[adjust context]

Signed-off-by: default avatarjiangtao <jiangtao62@huawei.com>
Reviewed-by: default avatarchengjike <chengjike.cheng@huawei.com>
Reviewed-by: default avatarAo Sun <sunao.sun@huawei.com>
Reviewed-by: default avatarZhenwei Yang <yangzhenwei@huawei.com>
Reviewed-by: default avatarHou Tao <houtao1@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent b6e2eba8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment