From: Reuben Farrelly <reuben-lkml@reub.net>
To: Andrew Morton <akpm@osdl.org>
Cc: Neil Brown <neilb@suse.de>, linux-kernel@vger.kernel.org, n@suse.de
Subject: Re: 2.6.14-mm1
Date: Mon, 07 Nov 2005 23:44:48 +1300 [thread overview]
Message-ID: <436F3020.1040209@reub.net> (raw)
In-Reply-To: <20051107023723.5cf63393.akpm@osdl.org>
On 7/11/2005 11:37 p.m., Andrew Morton wrote:
> Neil Brown <neilb@suse.de> wrote:
>> On Monday November 7, akpm@osdl.org wrote:
>>> Reuben Farrelly <reuben-lkml@reub.net> wrote:
>>>> Hi again,
>>>>
>>>> On 7/11/2005 3:24 p.m., Andrew Morton wrote:
>>>>> ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.14/2.6.14-mm1/
>>>>>
>>>>> - Added the 1394 development tree to the -mm lineup, as git-ieee1394.patch
>>>>>
>>>>> - Re-added rmk's driver-model tree git-drvmodel.patch
>>>>>
>>>>> - Added davem's sparc64 tree, as git-sparc64.patch
>>>>>
>>>>> - v4l updates
>>>>>
>>>>> - dvb updates
>>>> Just rebooted into 2.6.14-mm1 and now every few seconds I get this spewed up
>>>> on the console:
>>>>
>>>> Nov 7 22:49:47 tornado kernel: Debug: sleeping function called from invalid
>>>> context at include/asm/semaphore.h:99
>>>> Nov 7 22:49:47 tornado kernel: in_atomic():0, irqs_disabled():1
>>>> Nov 7 22:49:47 tornado kernel: [<c0103a50>] dump_stack+0x17/0x19
>>>> Nov 7 22:49:47 tornado kernel: [<c011971b>] __might_sleep+0x9d/0xad
>>>> Nov 7 22:49:47 tornado kernel: [<c028aa4b>] scsi_disk_get_from_dev+0x15/0x48
>>>> Nov 7 22:49:47 tornado kernel: [<c028b28e>] sd_prepare_flush+0x17/0x5a
>>>> Nov 7 22:49:47 tornado kernel: [<c027abff>] scsi_prepare_flush_fn+0x30/0x33
>>>> Nov 7 22:49:47 tornado kernel: [<c0255332>] blk_start_pre_flush+0xd5/0x13f
>>>> Nov 7 22:49:47 tornado kernel: [<c025490b>] elv_next_request+0x112/0x16f
>>>> Nov 7 22:49:47 tornado kernel: [<c027b045>] scsi_request_fn+0x4b/0x2fd
>>>> Nov 7 22:49:47 tornado kernel: [<c0254748>] __elv_add_request+0x109/0x176
>>>> Nov 7 22:49:47 tornado kernel: [<c0257ab4>] __make_request+0x1d0/0x474
>>>> Nov 7 22:49:47 tornado kernel: [<c0257e96>] generic_make_request+0xb3/0x128
>> ....
>>>> The box has raid-1 and I'm guessing that that may be the culprit here... ?
>>>>
>>> It's not immediately obvious. Could you enable CONFIG_DEBUG_PREEMPT?
>>> That'll tell us where the thread went into atomic mode.
>> Quick code inspection:
>> ll_rw_blk.c:2693 __make_request calls spin_lock_irq - goes atomic
>> line 2793, calls add_request()
>> This is before the spin_unlock_irq on line 2798
>> line 2438, add_request calls __elv_add_request
>> and the rest you can get from the stack trace until
>> scsi_disk_get_from_dev in sd.c calls
>> down(&sd_ref_sem);
>> which causes the message.
>>
>> Note raid-1 at all :-) (this time).
>>
>
> Possibly. But scsi like to undo host->lock in the strangest places.
>
> Would still like that CONFIG_DEBUG_PREEMPT trace, please.
Sure.
Debug: sleeping function called from invalid context at include/asm/semaphore.h:99
in_atomic():1, irqs_disabled():1
[<c0103c46>] dump_stack+0x17/0x19
[<c011a173>] __might_sleep+0x9c/0xae
[<c028f82b>] scsi_disk_get_from_dev+0x15/0x48
[<c029006e>] sd_prepare_flush+0x17/0x5a
[<c027f8ff>] scsi_prepare_flush_fn+0x30/0x33
[<c0259da0>] blk_start_pre_flush+0xd5/0x13f
[<c025936b>] elv_next_request+0x113/0x170
[<c027fd45>] scsi_request_fn+0x4b/0x2fd
[<c025b393>] blk_run_queue+0x2b/0x3c
[<c027f0b3>] scsi_run_queue+0xa4/0xb6
[<c027f11f>] scsi_next_command+0x16/0x19
[<c027f1db>] scsi_end_request+0x93/0xc5
[<c027f494>] scsi_io_completion+0x141/0x46b
[<c02901e9>] sd_rw_intr+0x117/0x22b
[<c027ae5f>] scsi_finish_command+0x7f/0x93
[<c027ad43>] scsi_softirq+0xa8/0x11a
[<c0121eb8>] __do_softirq+0x88/0x141
[<c0104fd9>] do_softirq+0x77/0x81
=======================
[<c012205a>] irq_exit+0x48/0x4a
[<c0104e84>] do_IRQ+0x74/0xa7
[<c010374e>] common_interrupt+0x1a/0x20
[<f8918c04>] acpi_processor_idle+0x11f/0x2c7 [processor]
[<c0100d71>] cpu_idle+0x49/0xa0
[<c01002d7>] rest_init+0x37/0x39
[<c03fd8c5>] start_kernel+0x166/0x179
[<c0100210>] 0xc0100210
---------------------------
| preempt count: 00000002 ]
| 2 level deep critical section nesting:
----------------------------------------
.. [<c0100dc6>] .... cpu_idle+0x9e/0xa0
.....[<c01002d7>] .. ( <= rest_init+0x37/0x39)
.. [<c031e25d>] .... _spin_lock+0x10/0x6a
.....[<c013a62a>] .. ( <= __do_IRQ+0x97/0xed)
reuben
next prev parent reply other threads:[~2005-11-07 10:44 UTC|newest]
Thread overview: 65+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-07 2:24 2.6.14-mm1 Andrew Morton
2005-11-07 3:25 ` 2.6.14-mm1 Christoph Hellwig
2005-11-07 6:12 ` 2.6.14-mm1 Andrew Morton
2005-11-07 6:34 ` 2.6.14-mm1 Herbert Xu
2005-11-07 3:30 ` 2.6.14-mm1 Christoph Hellwig
2005-11-07 12:18 ` 2.6.14-mm1 Roman Zippel
2005-11-07 17:02 ` 2.6.14-mm1 Christoph Hellwig
2005-11-07 17:23 ` 2.6.14-mm1 Roman Zippel
2005-11-07 12:41 ` 2.6.14-mm1 Geert Uytterhoeven
2005-11-07 4:04 ` 2.6.14-mm1 Brice Goglin
2005-11-07 4:10 ` 2.6.14-mm1 Reuben Farrelly
2005-11-07 6:07 ` 2.6.14-mm1 Andrew Morton
2005-11-07 8:24 ` 2.6.14-mm1 Benoit Boissinot
2005-11-07 9:54 ` 2.6.14-mm1 Reuben Farrelly
2005-11-07 10:09 ` 2.6.14-mm1 Andrew Morton
2005-11-07 10:26 ` 2.6.14-mm1 Neil Brown
2005-11-07 10:37 ` 2.6.14-mm1 Andrew Morton
2005-11-07 10:44 ` Reuben Farrelly [this message]
2005-11-07 18:52 ` 2.6.14-mm1 Andrew Morton
2005-11-07 19:27 ` 2.6.14-mm1 Alan Stern
2005-11-07 21:43 ` 2.6.14-mm1 J.A. Magallon
2005-11-08 0:07 ` 2.6.14-mm1 J.A. Magallon
2005-11-08 14:21 ` 2.6.14-mm1 James Bottomley
2005-11-09 0:30 ` 2.6.14-mm1 Reuben Farrelly
2005-11-07 12:00 ` 2.6.14-mm1 Jiri Slaby
2005-11-07 15:04 ` 2.6.14-mm1 Dustin Kirkland
2005-11-07 15:11 ` 2.6.14-mm1 Jiri Slaby
2005-11-07 16:15 ` 2.6.14-mm1 Alexander E. Patrakov
2005-11-07 19:52 ` 2.6.14-mm1 Andrew Morton
2005-11-07 20:07 ` 2.6.14-mm1 Greg KH
2005-11-07 20:30 ` 2.6.14-mm1 Dmitry Torokhov
2005-11-07 20:21 ` 2.6.14-mm1 Valdis.Kletnieks
2005-11-07 20:40 ` 2.6.14-mm1 Dmitry Torokhov
2005-11-07 20:46 ` 2.6.14-mm1 Andrew Morton
2005-11-11 9:32 ` 2.6.14-mm1 Alexander E. Patrakov
[not found] ` <437472DA.4090001@linuxfromscratch.org>
2005-11-11 11:50 ` 2.6.14-mm1 Alexander E. Patrakov
2005-11-07 17:37 ` 2.6.14-mm1: drivers/pci/hotplug/: namespace clashes Adrian Bunk
2005-11-07 18:41 ` Rajesh Shah
2005-11-07 20:03 ` Adrian Bunk
2005-11-07 21:37 ` Rajesh Shah
2005-11-07 21:10 ` 2.6.14-mm1: Why is USB_LIBUSUAL user-visible? Adrian Bunk
2005-11-07 21:52 ` Greg KH
2005-11-07 22:26 ` [linux-usb-devel] " Alan Stern
2005-11-07 22:28 ` Greg KH
2005-11-08 0:47 ` [-mm patch] USB_LIBUSUAL shouldn't be user-visible Adrian Bunk
2005-11-09 22:28 ` Greg KH
2005-11-10 6:41 ` Pete Zaitcev
2005-11-10 10:56 ` Adrian Bunk
2005-11-10 23:46 ` Greg KH
2005-11-11 2:09 ` Adrian Bunk
2005-11-11 6:13 ` Greg KH
2005-11-11 9:31 ` Pete Zaitcev
2005-11-10 12:11 ` Reuben Farrelly
2005-11-11 9:14 ` Pete Zaitcev
2005-11-07 23:34 ` 2.6.14-mm1: Why is USB_LIBUSUAL user-visible? Pete Zaitcev
2005-11-07 22:28 ` 2.6.14-mm1 - cpufreq build problem Rafael J. Wysocki
2005-11-08 4:36 ` [-mm patch] __deprecated_for_modules the lookup_hash() prototype Adrian Bunk
2005-11-10 13:07 ` 2.6.14-mm1 Serge Hallyn
[not found] ` <OFE00FE25C.725B5669-ON872570B5.0066EFF0-862570B5.00679646@us.ibm.com>
2005-11-11 17:59 ` 2.6.14-mm1 Serge Hallyn
2005-11-14 17:05 ` 2.6.14-mm1 Greg KH
2005-11-12 0:31 ` 2.6.14-mm1 Michal Piotrowski
2005-11-12 0:51 ` 2.6.14-mm1 Andrew Morton
2005-11-12 1:30 ` 2.6.14-mm1 Michal Piotrowski
2005-11-12 1:47 ` 2.6.14-mm1 Andrew Morton
2005-11-12 18:00 ` 2.6.14-mm1 Michal Piotrowski
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=436F3020.1040209@reub.net \
--to=reuben-lkml@reub.net \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=n@suse.de \
--cc=neilb@suse.de \
/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