Subject: Re: wi panics in uvm_unmap: no context ?
To: Matt Thomas <matt@3am-software.com>
From: Jonathan Stone <jonathan@dsg.stanford.edu>
List: tech-kern
Date: 03/19/2004 11:53:46
In message <0B92B81C-796B-11D8-AACB-000A957020BC@3am-software.com>
Matt Thomas writes:

>
>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.

Mmm, kcont...