Skip to content
Snippets Groups Projects
Commit 6bae1b15 authored by Elena Gryaznova's avatar Elena Gryaznova
Browse files

b=14957

i=Adilger

port OBD_FAIL_LDLM_CLOSE_THREAD from b1_6, add test_23b
parent 4b6f6519
No related branches found
No related tags found
No related merge requests found
......@@ -200,8 +200,8 @@ int __obd_fail_check_set(__u32 id, __u32 value, int set);
#define OBD_FAIL_LDLM_CANCEL_EVICT_RACE 0x311
/*
#define OBD_FAIL_LDLM_PAUSE_CANCEL 0x312
#define OBD_FAIL_LDLM_CLOSE_THREAD 0x313
*/
#define OBD_FAIL_LDLM_CLOSE_THREAD 0x313
#define OBD_FAIL_LDLM_CANCEL_BL_CB_RACE 0x314
#define OBD_FAIL_OSC 0x400
......
......@@ -336,6 +336,9 @@ int ll_close_thread_start(struct ll_close_queue **lcq_ret)
struct ll_close_queue *lcq;
pid_t pid;
if (OBD_FAIL_CHECK(OBD_FAIL_LDLM_CLOSE_THREAD))
return -EINTR;
OBD_ALLOC(lcq, sizeof(*lcq));
if (lcq == NULL)
return -ENOMEM;
......
......@@ -855,6 +855,19 @@ test_23a() { # was test_23
}
run_test 23a "interrupt client during recovery mount delay"
umount_client $MOUNT
cleanup_nocli
test_23b() { # was test_23
start_ost
start_mds
# Simulate -EINTR during mount OBD_FAIL_LDLM_CLOSE_THREAD
sysctl -w lustre.fail_loc=0x80000313
mount_client $MOUNT
cleanup
}
run_test 23b "Simulate -EINTR during mount"
fs2mds_HOST=$mds_HOST
fs2ost_HOST=$ost_HOST
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment