The following series (re)implements SunRPC disconnect injection using the kernel's generic fault injection infrastructure under the debugfs. It's partially a clean-up and partially a fresh implementation of server-side disconnect injection, while also enabling the straightforward addition of further types of fault injection in the future. Changes since v1: - Now builds properly with various combinations of CONFIG options --- Chuck Lever (4): SUNRPC: Add a /sys/kernel/debug/fail_sunrpc/ directory SUNRPC: Server-side disconnect injection SUNRPC: Move client-side disconnect injection SUNRPC: Add documentation for the fail_sunrpc/ directory .../fault-injection/fault-injection.rst | 18 +++++ include/linux/sunrpc/xprt.h | 18 ----- net/sunrpc/debugfs.c | 73 +++++-------------- net/sunrpc/fail.h | 24 ++++++ net/sunrpc/svc.c | 8 ++ net/sunrpc/xprt.c | 14 ++++ 6 files changed, 84 insertions(+), 71 deletions(-) create mode 100644 net/sunrpc/fail.h -- Chuck Lever