From: Arnd Bergmann <arnd@arndb.de>
To: "Carlos Martín" <carlos@cmartin.tk>
Cc: linux-kernel@vger.kernel.org, Andi Kleen <ak@suse.de>
Subject: Re: Debug: sleeping function called in atomic context
Date: Sat, 3 Dec 2005 13:51:14 +0100 [thread overview]
Message-ID: <200512031351.14458.arnd@arndb.de> (raw)
In-Reply-To: <200512022132.36626.carlos@cmartin.tk>
Am Freitag 02 Dezember 2005 21:32 schrieb Carlos Martín:
> I've been having this problem since -rc2, but today the output stopped
> long enough for me to copy it.
It seems you copied enough of it.
> This happens on shutdown, I think the USB driver is deregistering itself
> or something or other.
>
> This is part of the output with -rc4
>
> in_atomic():1 irqs_disabled():0
> Debug: sleeping function called in atomic context at linux/rwsem.h:66
> change_page_attr_addr+46
> ioremap_change_attr+75
> iounmap+14
>
> :usbcore:usb_hcd_pci_remove+62
This is what happens:
ioumap calls ioremap_change_attr with vmlist_lock held. change_page_attr_addr
then tries to acquire init_mm.mmap_sem, which must not be taken with
spinlock held.
It looks like the incorrect code has been in there for quite some time, but
that path was not taken for some reason.
Arnd <><
next prev parent reply other threads:[~2005-12-03 12:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-02 20:32 Debug: sleeping function called in atomic context Carlos Martín
2005-12-03 12:51 ` Arnd Bergmann [this message]
2005-12-03 22:17 ` Andi Kleen
2005-12-03 23:21 ` Debug: sleeping function called in atomic context II Andi Kleen
2005-12-04 13:11 ` Carlos Martín
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=200512031351.14458.arnd@arndb.de \
--to=arnd@arndb.de \
--cc=ak@suse.de \
--cc=carlos@cmartin.tk \
--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