From: "Sébastien Dugué" <sebastien.dugue@bull.net>
To: Benjamin LaHaise <bcrl@linux.intel.com>
Cc: linux-aio@kvack.org, linux-kernel@vger.kernel.org
Subject: Re: [AIO] aio-2.6.13-rc6-B1
Date: Wed, 21 Sep 2005 13:33:03 +0200 [thread overview]
Message-ID: <1127302383.2048.31.camel@frecb000686> (raw)
In-Reply-To: <20050920191329.GA6579@linux.intel.com>
On Tue, 2005-09-20 at 15:13 -0400, Benjamin LaHaise wrote:
> On Tue, Sep 20, 2005 at 12:23:10PM +0200, Sébastien Dugué wrote:
> > what's the point of calling wake_up_locked(&sem->wait) in
> > aio_down_wait? We're already in a wakeup path and end up
> > calling __wake_up_common recursively.
>
> That's necessary to kick the next semaphore op in the list. The
> list_del_init() right above that makes sure that we don't recurse
> and run the routine again.
OK, understood.
>
> > I think it may be one of the cause of my kernel hanging at the
> > very beginning.
> >
> > When I remove this call things go further but at some point a
> > semaphore wait queue gets thrashed and __wake_up_common tries to
> > call an invalid callback function.
>
> This patch from Zach might make a difference. Let me know if it changes
> the symptoms at all. Sorry if it doesn't apply cleanly, as it is against
> a base kernel. Basically, we could sleep while holding ctx_lock, which
> does Bad Things(tm) on SMP systems.
>
Well, it does not change a thing (I was not expecting it to). I think
the problem rather lies in the async semaphores (aio_down/aio_up)
mechanism and not in the fs aio.
What leads me to this is that the crash occurs only when there is
contention on an inode semaphore, which seems to happen frequently
with pipes and not so frequently with regular file IO.
And as the pipes are the only users (aside from xxx_aio_writev) of
this mecanism it shows right after the kernel is booted. Without the
90_pipe_aio.diff patch, the kernel boots normally but Oopses during
shutdown involving again a semaphore operation.
Any ideas?
Sébastien.
--
------------------------------------------------------
Sébastien Dugué BULL/FREC:B1-247
phone: (+33) 476 29 77 70 Bullcom: 229-7770
mailto:sebastien.dugue@bull.net
Linux POSIX AIO: http://www.bullopensource.org/posix
------------------------------------------------------
prev parent reply other threads:[~2005-09-21 11:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-17 18:44 [AIO] aio-2.6.13-rc6-B1 Benjamin LaHaise
2005-08-18 10:02 ` Suparna Bhattacharya
2005-08-17 23:16 ` Benjamin LaHaise
2005-08-18 16:22 ` Suparna Bhattacharya
2005-09-20 10:23 ` Sébastien Dugué
2005-09-20 19:13 ` Benjamin LaHaise
2005-09-21 11:33 ` Sébastien Dugué [this message]
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=1127302383.2048.31.camel@frecb000686 \
--to=sebastien.dugue@bull.net \
--cc=bcrl@linux.intel.com \
--cc=linux-aio@kvack.org \
--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