Subject: Re: wi panics in uvm_unmap: no context ?
To: David Young <dyoung@pobox.com>
From: Matt Thomas <matt@3am-software.com>
List: tech-kern
Date: 03/18/2004 22:02:47
On Mar 18, 2004, at 6:53 PM, David Young wrote:

> It does no harm to call wi_stop(, 1) from wi_ioctl, wi_detach, 
> wi_power,
> or wi_shutdown. I have an experimental patch that calls wi_stop(, 1)
> from wi_watchdog.  That panics the computer (see below). Why?

because they don't have a process/kthread context.  callouts are handled
from a software interrupt.  To do this, you will need a helper kthread.

-- 
Matt Thomas                     email: matt@3am-software.com
3am Software Foundry              www: http://3am-software.com/bio/matt/
Cupertino, CA              disclaimer: I avow all knowledge of this 
message.