summaryrefslogtreecommitdiffstats
path: root/net/sunrpc/debugfs.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2021-08-03 21:55:58 +0200
committerChuck Lever <chuck.lever@oracle.com>2021-08-20 19:50:33 +0200
commit3a1261805940d0ff1dbbb9c705dddbc018c0423f (patch)
tree577dc9ebe7e94b839dbe615b3e368dafc2211c31 /net/sunrpc/debugfs.c
parentSUNRPC: Move client-side disconnect injection (diff)
downloadlinux-3a1261805940d0ff1dbbb9c705dddbc018c0423f.tar.xz
linux-3a1261805940d0ff1dbbb9c705dddbc018c0423f.zip
SUNRPC: Server-side disconnect injection
Disconnect injection stress-tests the ability for both client and server implementations to behave resiliently in the face of network instability. A file called /sys/kernel/debug/fail_sunrpc/ignore-server-disconnect enables administrators to turn off server-side disconnect injection while allowing other types of sunrpc errors to be injected. The default setting is that server-side disconnect injection is enabled (ignore=false). Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'net/sunrpc/debugfs.c')
-rw-r--r--net/sunrpc/debugfs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/sunrpc/debugfs.c b/net/sunrpc/debugfs.c
index 04e453ad3508..827bf3a28178 100644
--- a/net/sunrpc/debugfs.c
+++ b/net/sunrpc/debugfs.c
@@ -259,6 +259,9 @@ static void fail_sunrpc_init(void)
debugfs_create_bool("ignore-client-disconnect", S_IFREG | 0600, dir,
&fail_sunrpc.ignore_client_disconnect);
+
+ debugfs_create_bool("ignore-server-disconnect", S_IFREG | 0600, dir,
+ &fail_sunrpc.ignore_server_disconnect);
}
#else
static void fail_sunrpc_init(void)