-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SUNRPC: Add a /sys/kernel/debug/fail_sunrpc/ directory
This directory will contain a set of administrative controls for enabling error injection for kernel RPC consumers. Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
- Loading branch information
Chuck Lever
committed
Aug 20, 2021
1 parent
729580d
commit c782af2
Showing
3 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* 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; | ||
}; | ||
|
||
extern struct fail_sunrpc_attr fail_sunrpc; | ||
|
||
#endif /* CONFIG_FAULT_INJECTION */ | ||
|
||
#endif /* _NET_SUNRPC_FAIL_H_ */ |