blob: 69dc30cc44b84417ba52388d52c7d5c65502c01e [file] [log] [blame]
Chuck Leverc782af22021-08-03 15:45:18 -04001/* 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
13struct fail_sunrpc_attr {
14 struct fault_attr attr;
Chuck Levera4ae3082021-08-05 10:25:49 -040015
16 bool ignore_client_disconnect;
Chuck Lever3a126182021-08-03 15:55:58 -040017
18 bool ignore_server_disconnect;
Chuck Leverc782af22021-08-03 15:45:18 -040019};
20
21extern struct fail_sunrpc_attr fail_sunrpc;
22
23#endif /* CONFIG_FAULT_INJECTION */
24
25#endif /* _NET_SUNRPC_FAIL_H_ */