#define OBD_FAIL_LLOG_ORIGIN_HANDLE_WRITE_REC_NET 0x1307
#define OBD_FAIL_LLOG_ORIGIN_HANDLE_CLOSE_NET 0x1308
#define OBD_FAIL_LLOG_CATINFO_NET 0x1309
-
+#define OBD_FAIL_MDS_SYNC_CAPA_SL 0x1310
/* Failure injection control */
#define OBD_FAIL_MASK_SYS 0x0000FF00
int rc;
ENTRY;
+ /* need barrier for mds_capa_keys access. */
+ cfs_down_write(&mds->mds_notify_lock);
mds->mds_capa_keys = keys;
+ cfs_up_write(&mds->mds_notify_lock);
+
rc = mdd_child_ops(mdd)->dt_init_capa_ctxt(env, mdd->mdd_child, mode,
timeout, alg, keys);
RETURN(rc);
if (!mds->mds_capa_keys)
RETURN(0);
+ OBD_FAIL_TIMEOUT(OBD_FAIL_MDS_SYNC_CAPA_SL, 5);
for (i = 0; i < 2; i++) {
key = &mds->mds_capa_keys[i];
DEBUG_CAPA_KEY(D_SEC, key, "propagate");
run_test 50 "failover MDS under load"
test_51() {
+ #define OBD_FAIL_MDS_SYNC_CAPA_SL 0x1310
+ do_facet ost1 lctl set_param fail_loc=0x00001310
+
mkdir -p $DIR/$tdir
# put a load of file creates/writes/deletes
writemany -q $DIR/$tdir/$tfile 0 5 &