Whamcloud - gitweb
Branch HEAD
[fs/lustre-release.git] / lustre / kernel_patches / patches / small-fixes-about-jbd.patch
1 diff -pur linux-2.6.18-128.orig/fs/jbd/commit.c linux-2.6.18-128/fs/jbd/commit.c
2 --- linux-2.6.18-128.orig/fs/jbd/commit.c       2009-04-10 16:31:40.000000000 +0800
3 +++ linux-2.6.18-128/fs/jbd/commit.c    2009-04-10 16:33:14.000000000 +0800
4 @@ -862,7 +862,8 @@ wait_for_iobuf:
5                 if (err)
6                         __journal_abort_hard(journal);
7         }
8 -       err = journal_wait_on_commit_record(cbh);
9 +       if (!err && !is_journal_aborted(journal))
10 +               err = journal_wait_on_commit_record(cbh);
11  
12         if (err)
13                 journal_abort(journal, err);