fail.h 495 B

12345678910111213141516171819202122232425
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright (C) 2021, Oracle. All rights reserved.
  4. */
  5. #ifndef _NET_SUNRPC_FAIL_H_
  6. #define _NET_SUNRPC_FAIL_H_
  7. #include <linux/fault-inject.h>
  8. #if IS_ENABLED(CONFIG_FAULT_INJECTION)
  9. struct fail_sunrpc_attr {
  10. struct fault_attr attr;
  11. bool ignore_client_disconnect;
  12. bool ignore_server_disconnect;
  13. bool ignore_cache_wait;
  14. };
  15. extern struct fail_sunrpc_attr fail_sunrpc;
  16. #endif /* CONFIG_FAULT_INJECTION */
  17. #endif /* _NET_SUNRPC_FAIL_H_ */