vserver 1.9.5.x5
[linux-2.6.git] / fs / jbd / recovery.c
index 4a3d494..103c34e 100644 (file)
@@ -354,6 +354,8 @@ static int do_one_pass(journal_t *journal,
                struct buffer_head *    obh;
                struct buffer_head *    nbh;
 
+               cond_resched();         /* We're under lock_kernel() */
+
                /* If we already know where to stop the log traversal,
                 * check right now that we haven't gone past the end of
                 * the log. */