Commit | Line | Data |
---|---|---|
c782af25 CL |
1 | /* SPDX-License-Identifier: GPL-2.0 */ |
2 | /* | |
3 | * Copyright (C) 2021, Oracle. All rights reserved. | |
4 | */ | |
5 | ||
6 | #ifndef _NET_SUNRPC_FAIL_H_ | |
7 | #define _NET_SUNRPC_FAIL_H_ | |
8 | ||
9 | #include <linux/fault-inject.h> | |
10 | ||
11 | #if IS_ENABLED(CONFIG_FAULT_INJECTION) | |
12 | ||
13 | struct fail_sunrpc_attr { | |
14 | struct fault_attr attr; | |
a4ae3081 CL |
15 | |
16 | bool ignore_client_disconnect; | |
3a126180 | 17 | bool ignore_server_disconnect; |
37324e6b | 18 | bool ignore_cache_wait; |
c782af25 CL |
19 | }; |
20 | ||
21 | extern struct fail_sunrpc_attr fail_sunrpc; | |
22 | ||
23 | #endif /* CONFIG_FAULT_INJECTION */ | |
24 | ||
25 | #endif /* _NET_SUNRPC_FAIL_H_ */ |