All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Mason <mason@suse.com>
To: Manuel Krause <manuel.krause@mb.tu-ilmenau.de>
Cc: reiserfs-list <reiserfs-list@namesys.com>
Subject: Re: data-logging-20  BUG?!
Date: 29 Jul 2002 15:29:15 -0400	[thread overview]
Message-ID: <1027970955.12087.6.camel@tiny> (raw)
In-Reply-To: <3D427179.2070401@mb.tu-ilmenau.de>

On Sat, 2002-07-27 at 06:10, Manuel Krause wrote:

> 
> After having upgraded from data-logging -19 to -20 and using it for some 
> hours I keep getting this bug (kernel BUG at journal.c:724!):

Ok, I've uploaded -21, and it should fix the BUG().  It was a debugging
check to make sure the journal code had properly sent all the ordered
buffers to disk before sending the commit down.  There was a race in -20
that broke this rule.

The oops should not have caused any corruptions, the incremental from
-20 to -21 is below.

-chris

diff -u comp/fs/reiserfs/journal.c comp/fs/reiserfs/journal.c
--- comp/fs/reiserfs/journal.c	Fri Jul 26 10:06:44 2002
+++ comp/fs/reiserfs/journal.c	Mon Jul 29 13:07:31 2002
@@ -3652,6 +3652,9 @@
 
   SB_JOURNAL(p_s_sb)->j_current_jl = alloc_journal_list(p_s_sb);
 
+  /* write any buffers that must hit disk before the commit is done */
+  fsync_buffers_list(&jl->j_ordered_bh_list);
+
   /* now it is safe to insert this transaction on the main list */
   list_add_tail(&jl->j_list, &SB_JOURNAL(p_s_sb)->j_journal_list);
   list_add_tail(&jl->j_working_list, &SB_JOURNAL(p_s_sb)->j_working_list);
@@ -3738,9 +3741,6 @@
   if (!(SB_JOURNAL(p_s_sb)->j_current_jl->j_list_bitmap)) {
     reiserfs_panic(p_s_sb, "journal-1996: do_journal_end, could not get a list bitmap\n") ;
   }
-
-  /* write any buffers that must hit disk before the commit is done */
-  fsync_buffers_list(&jl->j_ordered_bh_list);
 
   unlock_journal(p_s_sb) ;
   atomic_set(&(SB_JOURNAL(p_s_sb)->j_jlock), 0) ;


  parent reply	other threads:[~2002-07-29 19:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-27 10:10 data-logging-20 BUG?! Manuel Krause
     [not found] ` <20020729091710.GA15313@mfa.kfki.hu>
2002-07-29  9:41   ` Manuel Krause
2002-07-29 19:29 ` Chris Mason [this message]
2002-07-30 22:41   ` Manuel Krause

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1027970955.12087.6.camel@tiny \
    --to=mason@suse.com \
    --cc=manuel.krause@mb.tu-ilmenau.de \
    --cc=reiserfs-list@namesys.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.