NFS: add sysfs shutdown knob
authorBenjamin Coddington <bcodding@redhat.com>
Thu, 15 Jun 2023 18:07:30 +0000 (14:07 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 19 Jun 2023 19:08:12 +0000 (15:08 -0400)
commitd9615d166c7ede67bf16bdd0772e35e124f305f5
tree7e527b93c0c0ab2e63f9455bbae7d8c6a8d3d9ae
parentf4057ffd0e134e54a727e00c3c9b0d9a5051eadf
NFS: add sysfs shutdown knob

Within each nfs_server sysfs tree, add an entry named "shutdown".  Writing
1 to this file will set the cl_shutdown bit on the rpc_clnt structs
associated with that mount.  If cl_shutdown is set, the task scheduler
immediately returns -EIO for new tasks.

Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/sysfs.c
include/linux/nfs_fs_sb.h
include/linux/sunrpc/clnt.h
net/sunrpc/clnt.c