implemented---another is checked in yet to be landed core CLIO code.
b=16450
indicating lock ordering. Update mdd code to use new locking
interface.
+Severity : normal
+Bugzilla : 16450
+Description: Introduce failloc constants for lockless IO tests.
+Details : Add two new failloc constants to test lockless IO. Only one of
+ them in implemented---another is checked in yet to be landed
+ core CLIO code.
+
--------------------------------------------------------------------------------
2007-08-10 Cluster File Systems, Inc. <info@clusterfs.com>
#define OBD_FAIL_LDLM_CANCEL_BL_CB_RACE 0x314
#define OBD_FAIL_LDLM_CP_CB_WAIT 0x315
+/* LOCKLESS IO */
+#define OBD_FAIL_LDLM_SET_CONTENTION 0x315
+
#define OBD_FAIL_OSC 0x400
#define OBD_FAIL_OSC_BRW_READ_BULK 0x401
#define OBD_FAIL_OSC_BRW_WRITE_BULK 0x402
#define OBD_FAIL_OSC_CONNECT_CKSUM 0x40b
#define OBD_FAIL_OSC_CKSUM_ADLER_ONLY 0x40c
#define OBD_FAIL_OSC_DIO_PAUSE 0x40d
+#define OBD_FAIL_OSC_OBJECT_CONTENTION 0x40e
#define OBD_FAIL_PTLRPC 0x500
#define OBD_FAIL_PTLRPC_ACK 0x501
struct ldlm_resource *res = lock->l_resource;
cfs_time_t now = cfs_time_current();
+ if (OBD_FAIL_CHECK(OBD_FAIL_LDLM_SET_CONTENTION))
+ return 1;
+
CDEBUG(D_DLMTRACE, "contended locks = %d\n", contended_locks);
if (contended_locks > res->lr_namespace->ns_contended_locks)
res->lr_contention_time = now;