Whamcloud - gitweb
LU-502 don't allow to kill service threads by OOM killer.
[fs/lustre-release.git] / lustre / mds / mds_lov.c
index 8225a53..95edc07 100644 (file)
@@ -953,8 +953,8 @@ int mds_lov_start_synchronize(struct obd_device *obd,
 
         if (ev != OBD_NOTIFY_SYNC) {
                 /* Synchronize in the background */
-                rc = cfs_kernel_thread(mds_lov_synchronize, mlsi,
-                                       CLONE_VM | CLONE_FILES);
+                rc = cfs_create_thread(mds_lov_synchronize, mlsi,
+                                       CFS_DAEMON_FLAGS);
                 if (rc < 0) {
                         CERROR("%s: error starting mds_lov_synchronize: %d\n",
                                obd->obd_name, rc);