Home
last modified time | relevance | path

Searched refs:cfs_fail_loc (Results 1 – 3 of 3) sorted by relevance

/drivers/staging/lustre/lnet/libcfs/
Dfail.c34 unsigned long cfs_fail_loc; variable
35 EXPORT_SYMBOL(cfs_fail_loc);
55 if ((cfs_fail_loc & (CFS_FAILED | CFS_FAIL_ONCE)) == in __cfs_fail_check_set()
62 if (cfs_fail_loc & CFS_FAIL_RAND) { in __cfs_fail_check_set()
68 if (cfs_fail_loc & CFS_FAIL_SKIP) { in __cfs_fail_check_set()
80 if (cfs_fail_loc & CFS_FAIL_SOME && in __cfs_fail_check_set()
81 (!(cfs_fail_loc & CFS_FAIL_ONCE) || cfs_fail_val <= 1)) { in __cfs_fail_check_set()
85 set_bit(CFS_FAIL_ONCE_BIT, &cfs_fail_loc); in __cfs_fail_check_set()
97 set_bit(CFS_FAIL_ONCE_BIT, &cfs_fail_loc); in __cfs_fail_check_set()
99 if (test_and_set_bit(CFS_FAILED_BIT, &cfs_fail_loc)) { in __cfs_fail_check_set()
[all …]
Dmodule.c284 long old_fail_loc = cfs_fail_loc; in proc_fail_loc()
287 if (old_fail_loc != cfs_fail_loc) in proc_fail_loc()
411 .data = &cfs_fail_loc,
412 .maxlen = sizeof(cfs_fail_loc),
/drivers/staging/lustre/include/linux/libcfs/
Dlibcfs_fail.h35 extern unsigned long cfs_fail_loc;
74 return cfs_fail_loc != 0 && in CFS_FAIL_PRECHECK()
75 ((cfs_fail_loc & CFS_FAIL_MASK_LOC) == (id & CFS_FAIL_MASK_LOC) || in CFS_FAIL_PRECHECK()
76 (cfs_fail_loc & id & CFS_FAULT)); in CFS_FAIL_PRECHECK()