X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fmdd%2Fmdd_device.c;h=acb5d37cb81ffb7574ace83c329147ffedf5088c;hp=3590ed92ff6634220131db0681e18abefc94bcb7;hb=5c883ea2748ae9e430a9cd863a9b630b2a74440a;hpb=acd639bf0de0c39419dff94fd6d338283a1ddb24 diff --git a/lustre/mdd/mdd_device.c b/lustre/mdd/mdd_device.c index 3590ed9..acb5d37 100644 --- a/lustre/mdd/mdd_device.c +++ b/lustre/mdd/mdd_device.c @@ -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... */