2021-08-03 19:45:18 +00:00
|
|
|
/* 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;
|
2021-08-05 14:25:49 +00:00
|
|
|
|
|
|
|
bool ignore_client_disconnect;
|
2021-08-03 19:55:58 +00:00
|
|
|
bool ignore_server_disconnect;
|
2022-03-31 19:30:10 +00:00
|
|
|
bool ignore_cache_wait;
|
2021-08-03 19:45:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
extern struct fail_sunrpc_attr fail_sunrpc;
|
|
|
|
|
|
|
|
#endif /* CONFIG_FAULT_INJECTION */
|
|
|
|
|
|
|
|
#endif /* _NET_SUNRPC_FAIL_H_ */
|