From: Andrew Morton <akpm@zip.com.au>
To: "Ishan O. Jayawardena" <ioshadij@hotmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [patch] kjournald locking fix
Date: Thu, 04 Apr 2002 02:19:46 -0800 [thread overview]
Message-ID: <3CAC28C2.927F29E5@zip.com.au> (raw)
In-Reply-To: <Pine.LNX.4.21.0204041539260.572-200000@shalmirane.net>
"Ishan O. Jayawardena" wrote:
>
> Greetings,
>
> kjournald seems to be missing an unlock_kernel() for a matching
> lock_kernel(). A posting by Dennis Vadura to l-k mentions (among other
> things) a kernel message that says kjournald exited with preempt_count ==
> 1. The attached patch (text/plain) adds the necessary
> unlock_kernel(). [But I haven't been able to reproduce the hang that
> Dennis experiences...]
> Tested only on UP. Patch is for 2.4.19-pre5 + prempt-kernel, _no_
> lock-break. I hope the positioning of unlock_kernel() is correct... please
> correct me if I'm wrong.
The unlock_kernel() is fine. The kernel will drop the
lock for us as the task makes its final call to schedule()
on its way to the process graveyard, but it's neater this way.
> Please CC me (ioshadij@hotmail.com). I can't subscribe to the list
> with my own ISP because they aren't ECN-friendly, and subscribing via
>
> PS: Of course, the reparent_to_init() isn't part of the fix, but I've seen
> kjournald become a zombie in an ugly episode with a deadlock in devfs many
> moons ago.
I've always put the reparent_to_init() call after the daemonize()
call. I don't immediately see anything wrong with doing it
beforehand, but that is a less tested code sequence.
But yes, you're right - kjournald needs to call reparent_to_init(),
else it'll turn into a zombie if the process which mounted the
filesystem is still running.
Could you please move the reparent_to_init() down a line and send
a diff to Marcelo?
Thanks.
next prev parent reply other threads:[~2002-04-04 10:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-04 22:02 [patch] kjournald locking fix Ishan O. Jayawardena
2002-04-04 10:19 ` Andrew Morton [this message]
2002-04-04 18:40 ` Robert Love
-- strict thread matches above, loose matches on Subject: below --
2002-04-04 22:55 Ishan O. Jayawardena
2002-04-04 18:40 ` Robert Love
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=3CAC28C2.927F29E5@zip.com.au \
--to=akpm@zip.com.au \
--cc=ioshadij@hotmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox