Whamcloud - gitweb
Branch HEAD
[fs/lustre-release.git] / lustre / kernel_patches / patches / jbd-ctx_switch.patch
1 diff -rup linux-2.4.20-uml/fs/jbd/transaction.c linux-2.4.21-rc2/fs/jbd/transaction.c
2 --- linux-2.4.20-uml/fs/jbd/transaction.c       Thu Nov 28 16:53:15 2002
3 +++ linux-2.4.21-rc2/fs/jbd/transaction.c       Fri May 16 11:00:40 2003
4 @@ -666,7 +673,8 @@ repeat:
5                         spin_unlock(&journal_datalist_lock);
6                         unlock_journal(journal);
7                         /* commit wakes up all shadow buffers after IO */
8 -                       sleep_on(&jh2bh(jh)->b_wait);
9 +                       wait_event(jh2bh(jh)->b_wait,
10 +                                               jh->b_jlist != BJ_Shadow);
11                         lock_journal(journal);
12                         goto repeat;
13                 }