Re: 2.5.70-mm2

Andrew Morton (akpm@digeo.com)
Thu, 29 May 2003 04:23:33 -0700


Andrew Morton <akpm@digeo.com> wrote:
>
>
> ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.5/2.5.70/2.5.70-mm2/
>
>
> . A couple more locking mistakes in ext3 have been fixed.
>

But not all of them. The below is needed on SMP.

diff -puN fs/jbd/transaction.c~x fs/jbd/transaction.c
--- 25-whoops/fs/jbd/transaction.c~x 2003-05-29 04:21:51.000000000 -0700
+++ 25-whoops-akpm/fs/jbd/transaction.c 2003-05-29 04:22:09.000000000 -0700
@@ -2077,12 +2077,13 @@ void __journal_refile_buffer(struct jour
*/
void journal_refile_buffer(journal_t *journal, struct journal_head *jh)
{
- struct buffer_head *bh;
+ struct buffer_head *bh = jh2bh(jh);

+ jbd_lock_bh_state(bh);
spin_lock(&journal->j_list_lock);
- bh = jh2bh(jh);

__journal_refile_buffer(jh);
+ jbd_unlock_bh_state(bh);
journal_remove_journal_head(bh);

spin_unlock(&journal->j_list_lock);

_

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/