All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@zip.com.au>
To: Diego Biurrun <diego@biurrun.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Oops after removing PCMCIA modem with low latency patch
Date: Fri, 30 Aug 2002 15:53:06 -0700	[thread overview]
Message-ID: <3D6FF752.B2BDDC66@zip.com.au> (raw)
In-Reply-To: 20020830223913.GB412@maxx

Diego Biurrun wrote:
> 
> Hello!
> 
> I just tried your 2.4.19-low-latency patch on a stock 2.4.19 kernel and
> my box oopses when I manually remove my PCMCIA modem.

Yup.  The pcmcia drivers like to call sleeping devfs functions
from within a timer handler.  The kernel tries to perform a
context switch in interrupt context and bugs out.  This can happen
without the low-latency patch, but doesn't.

The fix for that is to change the (strange) deferred deregister thing
in several of the CardServices drivers to punt the activity up to
process context via schedule_task(), but nobody has done that yet.

Probably, you can add

	if (in_interrupt())
		return;

to schedule() to make the BUGs go away.   Not using devfs makes
them go away too - but it is not a devfs bug.

  reply	other threads:[~2002-08-30 22:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-30 22:39 Oops after removing PCMCIA modem with low latency patch Diego Biurrun
2002-08-30 22:53 ` Andrew Morton [this message]
2002-08-30 23:25   ` vm_operations .. how to unmap? Imran Badr
2002-09-04  2:19     ` __get_free_pages Imran Badr
2002-09-04  2:27       ` __get_free_pages Robert Love
2002-09-04  2:38         ` __get_free_pages Rik van Riel
2002-08-31  0:39   ` Oops after removing PCMCIA modem with low latency patch Diego Biurrun

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=3D6FF752.B2BDDC66@zip.com.au \
    --to=akpm@zip.com.au \
    --cc=diego@biurrun.de \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.