public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Douglas Gilbert <dougg@torque.net>
To: Andrew Morton <akpm@digeo.com>
Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org,
	Alan Cox <alan@lxorguk.ukuu.org.uk>
Subject: Re: illegal context for sleeping ... rmmod ide-cd + ide-scsi
Date: Mon, 05 May 2003 21:51:04 +1000	[thread overview]
Message-ID: <3EB65028.8080402@torque.net> (raw)
In-Reply-To: <20030505020104.0abc66ba.akpm@digeo.com>

Andrew Morton wrote:
> Douglas Gilbert <dougg@torque.net> wrote:
> 
>>In lk 2.5.69 (and in 68) both the ide-cd and ide-scsi
>>modules generate a "sleeping function called from illegal
>>context" stack trace when removed.
>>
>>After "rmmod ide-cd" this appears:
>>  Debug: sleeping function called from illegal context
>>         at include/asm/semaphore.h:119
>>  Call Trace:
>>   [<c011dcec>] __might_sleep+0x5c/0x70
> 
> 
> ide_unregister_subdriver() does spin_lock_irqsave(&ide_lock), then
> calls auto_remove_settings(), which does down(&ide_setting_sem);
> 
> A simple fix might be:

Andrew,
Thanks. That patch clears the reported problem.

Doug Gilbert


  reply	other threads:[~2003-05-05 11:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-05  8:39 illegal context for sleeping ... rmmod ide-cd + ide-scsi Douglas Gilbert
2003-05-05  9:01 ` Andrew Morton
2003-05-05 11:51   ` Douglas Gilbert [this message]
2003-05-05 11:23     ` Alan Cox

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=3EB65028.8080402@torque.net \
    --to=dougg@torque.net \
    --cc=akpm@digeo.com \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@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