From: Andreas Dilger <adilger@turbolinux.com>
To: "Ph. Marek" <marek@bmlv.gv.at>
Cc: sct@redhat.com, akpm@zip.com.au, linux-kernel@vger.kernel.org,
ext3-users@redhat.com
Subject: Re: [PATCH] open files in kjounald
Date: Mon, 22 Apr 2002 10:17:06 -0600 [thread overview]
Message-ID: <20020422161706.GC3017@turbolinux.com> (raw)
In-Reply-To: <3.0.6.32.20020422065639.0090cd10@pop3.bmlv.gv.at>
On Apr 22, 2002 06:56 +0200, Ph. Marek wrote:
> On every mount of ext3 (and I suppose all journaling filesystems which use
> jbd, although I didn't test this) a new kjournald is created. All kjournald
> share the same file-information.
>
> Before this patch it would accumulativly fetch open files from the calling
> process (normally mount); I verified this via (in bash)
> exec 30< /etc/services
> mount <partition> /mnt/tmp
> ps -aux | grep kjournald
> ls -la <pid of any kjournald>
> gives, among 0, 1 and 2
> 30 -> /etc/services
>
> This is really awful as you can't umount devfs (normally /dev/console is
> opened as from the start-scripts) and so / can't be umounted.
>
> After applying this patch the open files were gone.
It looks OK to me, except that the patch is reversed.
> diff -ru linux/fs/jbd/journal.c linux.ori/fs/jbd/journal.c
> --- linux/fs/jbd/journal.c Mon Apr 22 06:29:16 2002
> +++ linux.ori/fs/jbd/journal.c Mon Apr 22 06:28:54 2002
> @@ -204,7 +204,6 @@
>
> lock_kernel();
> daemonize();
> - exit_files(current);
> spin_lock_irq(¤t->sigmask_lock);
> sigfillset(¤t->blocked);
> recalc_sigpending(current);
Cheers, Andreas
--
Andreas Dilger
http://www-mddsp.enel.ucalgary.ca/People/adilger/
http://sourceforge.net/projects/ext2resize/
next prev parent reply other threads:[~2002-04-22 16:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-22 4:56 [PATCH] open files in kjounald Ph. Marek
2002-04-22 16:17 ` Andreas Dilger [this message]
2002-04-22 17:08 ` Stephen C. Tweedie
2002-04-23 6:42 ` Ph. Marek
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=20020422161706.GC3017@turbolinux.com \
--to=adilger@turbolinux.com \
--cc=akpm@zip.com.au \
--cc=ext3-users@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=marek@bmlv.gv.at \
--cc=sct@redhat.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.