Whamcloud - gitweb
LU-16056 libcfs: restore umask handling in kernel threads
[fs/lustre-release.git] / lustre / ldlm / ldlm_request.c
index 02deec2..6fe7af9 100644 (file)
@@ -56,6 +56,7 @@
 
 #define DEBUG_SUBSYSTEM S_LDLM
 
+#include <linux/fs_struct.h>
 #include <lustre_errno.h>
 #include <lustre_dlm.h>
 #include <obd_class.h>
@@ -2609,6 +2610,7 @@ static int ldlm_lock_replay_thread(void *data)
 {
        struct obd_import *imp = data;
 
+       unshare_fs_struct();
        CDEBUG(D_HA, "lock replay thread %s to %s@%s\n",
               imp->imp_obd->obd_name, obd2cli_tgt(imp->imp_obd),
               imp->imp_connection->c_remote_uuid.uuid);