aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/fail.h
blob: 4b4b500df428294ca47b5813dfdcc2247b883024 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* 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;
	bool			ignore_cache_wait;
};

extern struct fail_sunrpc_attr fail_sunrpc;

#endif /* CONFIG_FAULT_INJECTION */

#endif /* _NET_SUNRPC_FAIL_H_ */