All of lore.kernel.org
 help / color / mirror / Atom feed
From: Oleg Drokin <green@namesys.com>
To: Jeff Chua <jchua@fedex.com>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: remount reiserfs hangs under heavy load 2.4.20pre5
Date: Mon, 9 Sep 2002 18:46:57 +0400	[thread overview]
Message-ID: <20020909184657.A6250@namesys.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0209062327150.615-100000@boston.corp.fedex.com>

Hello!

On Fri, Sep 06, 2002 at 11:35:16PM +0800, Jeff Chua wrote:
> > > Whenever "mount -o remount -n -w /dev/hdax" is issued under disk
> > > activities, the system would freezed, and had to be hard booted.
> > What kind of disk activies?
> Activities such as compiling the kernel or rcp large files on /dev/hda3
> > What was mount status of filesystems before that command was it readonly
> > mounted ?
> Yes, read-only on /dev/hda2, trying to change to read-write.

Hm. Well, I have not found this same bug as you describe but a very similar
problem.
Can you please try patch below and see it it helps in your situation too?
It should apply to almost anything including 2.4.19 and 2.4.20-pre5.

Thank you.

Bye,
    Oleg


===== super.c 1.23 vs edited =====
--- 1.23/fs/reiserfs/super.c	Mon Sep  9 14:41:12 2002
+++ edited/super.c	Mon Sep  9 17:48:55 2002
@@ -664,7 +664,7 @@
   }
 
   if (*mount_flags & MS_RDONLY) {
-    /* remount rean-only */
+    /* remount read-only */
     if (s->s_flags & MS_RDONLY)
       /* it is read-only already */
       return 0;
@@ -680,6 +680,10 @@
     journal_mark_dirty(&th, s, SB_BUFFER_WITH_SB (s));
     s->s_dirt = 0;
   } else {
+    /* remount read-write */
+    if (!(s->s_flags & MS_RDONLY))
+	return 0; /* We are read-write already */
+
     s->u.reiserfs_sb.s_mount_state = sb_state(rs) ;
     s->s_flags &= ~MS_RDONLY ; /* now it is safe to call journal_begin */
     journal_begin(&th, s, 10) ;

  reply	other threads:[~2002-09-09 14:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-05 12:43 remount reiserfs hangs under heavy load 2.4.20pre5 Jeff Chua
2002-09-06 11:30 ` Oleg Drokin
2002-09-06 15:35   ` Jeff Chua
2002-09-09 14:46     ` Oleg Drokin [this message]
2002-09-17  4:47       ` Jeff Chua

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=20020909184657.A6250@namesys.com \
    --to=green@namesys.com \
    --cc=jchua@fedex.com \
    --cc=linux-kernel@vger.kernel.org \
    /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.