Whamcloud - gitweb
LU-12930 various: use schedule_timeout_*interruptible
[fs/lustre-release.git] / lustre / mdd / mdd_device.c
index 3590ed9..acb5d37 100644 (file)
@@ -145,7 +145,7 @@ static int mdd_init0(const struct lu_env *env, struct mdd_device *mdd,
        /* sync permission changes */
        mdd->mdd_sync_permission = 1;
        /* enable changelog garbage collection */
-       mdd->mdd_changelog_gc = 0;
+       mdd->mdd_changelog_gc = 1;
        /* with a significant amount of idle time */
        mdd->mdd_changelog_max_idle_time = CHLOG_MAX_IDLE_TIME;
        /* or a significant amount of late indexes */
@@ -616,7 +616,8 @@ again:
                         * and to have set mc_gc_task to itself
                         */
                        spin_unlock(&mdd->mdd_cl.mc_lock);
-                       schedule_timeout(usecs_to_jiffies(10));
+                       /* Add a tiny sleep */
+                       schedule_timeout_uninterruptible(1);
                        /* go back to fully check if GC-thread has started or
                         * even already exited or if a new one is starting...
                         */