diff --git a/fs/jbd2/commit.c b/fs/jbd2/commit.c index 8c13c0a030a41b7f158d5cf9bd10eef7fc97302f..99562835be4502588e34745085c8abcadec00cb0 100644 --- a/fs/jbd2/commit.c +++ b/fs/jbd2/commit.c @@ -274,6 +274,7 @@ static int journal_finish_inode_data_buffers(journal_t *journal, dirty_end); if (!ret) ret = err; + cond_resched(); spin_lock(&journal->j_list_lock); jinode->i_flags &= ~JI_COMMIT_RUNNING; smp_mb();