The following series (re)implements SunRPC disconnect injection using the kernel's generic fault injection infrastructure under 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 v2: - CONFIG options still not right, complexity now hidden in Kconfig 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: Move client-side disconnect injection SUNRPC: Server-side disconnect injection SUNRPC: Add documentation for the fail_sunrpc/ directory .../fault-injection/fault-injection.rst | 18 +++++ include/linux/sunrpc/xprt.h | 18 ----- lib/Kconfig.debug | 7 ++ net/sunrpc/debugfs.c | 73 +++++-------------- net/sunrpc/fail.h | 25 +++++++ net/sunrpc/svc.c | 8 ++ net/sunrpc/xprt.c | 14 ++++ 7 files changed, 92 insertions(+), 71 deletions(-) create mode 100644 net/sunrpc/fail.h -- Chuck Lever