From: Trond Myklebust <trond.myklebust@fys.uio.no>
To: Arjan van de Ven <arjan@infradead.org>
Cc: xb <xavier.bru@bull.net>, linux-kernel@vger.kernel.org
Subject: Re: 2.6.18.4: flush_workqueue calls mutex_lock in interrupt environment
Date: Wed, 13 Dec 2006 07:41:18 -0500 [thread overview]
Message-ID: <1166013678.5695.26.camel@lade.trondhjem.org> (raw)
In-Reply-To: <1165996947.27217.725.camel@laptopd505.fenrus.org>
On Wed, 2006-12-13 at 09:02 +0100, Arjan van de Ven wrote:
> On Wed, 2006-12-13 at 08:25 +0100, xb wrote:
> > Hi all,
> >
> > Running some IO stress tests on a 8*ways IA64 platform, we got:
> > BUG: warning at kernel/mutex.c:132/__mutex_lock_common() message
> > followed by:
> > Unable to handle kernel paging request at virtual address
> > 0000000000200200
> > oops corresponding to anon_vma_unlink() calling list_del() on a
> > poisonned list.
> >
> > Having a look to the stack, we see that flush_workqueue() calls
> > mutex_lock() with softirqs disabled.
>
> something is wrong here... flush_workqueue() is a sleeping function and
> is not allowed to be called in such a context!
It seems utterly insane to have aio_complete() flush a workqueue. That
function has to be called from a number of different environments,
including non-sleep tolerant environments.
For instance it means that directIO on NFS will now cause the rpciod
workqueues to call flush_workqueue(aio_wq), thus slowing down all RPC
activity.
Trond
next prev parent reply other threads:[~2006-12-13 12:41 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-13 7:25 xb
2006-12-13 8:02 ` Arjan van de Ven
2006-12-13 12:41 ` Trond Myklebust [this message]
[not found] <20061214172010.a3810c9d.akpm@osdl.org>
2006-12-15 1:58 ` Chen, Kenneth W
2006-12-15 6:35 Chen, Kenneth W
2006-12-15 13:49 ` Trond Myklebust
2006-12-15 14:01 ` Trond Myklebust
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=1166013678.5695.26.camel@lade.trondhjem.org \
--to=trond.myklebust@fys.uio.no \
--cc=arjan@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=xavier.bru@bull.net \
/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
all inboxes | Powered by JetHome®