mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
![Chuck Lever](/assets/img/avatar_default.png)
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>
25 lines
469 B
C
25 lines
469 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (C) 2021, Oracle. All rights reserved.
|
|
*/
|
|
|
|
#ifndef _NET_SUNRPC_FAIL_H_
|
|
#define _NET_SUNRPC_FAIL_H_
|
|
|
|
#include <linux/fault-inject.h>
|
|
|
|
#if IS_ENABLED(CONFIG_FAULT_INJECTION)
|
|
|
|
struct fail_sunrpc_attr {
|
|
struct fault_attr attr;
|
|
|
|
bool ignore_client_disconnect;
|
|
|
|
bool ignore_server_disconnect;
|
|
};
|
|
|
|
extern struct fail_sunrpc_attr fail_sunrpc;
|
|
|
|
#endif /* CONFIG_FAULT_INJECTION */
|
|
|
|
#endif /* _NET_SUNRPC_FAIL_H_ */
|