[rt2x00-users] [PATCH] Kill all tasklets during device removal

Gertjan van Wingerde gwingerde at gmail.com
Tue Jan 25 05:18:43 EST 2011


On 01/24/11 16:17, Ivo van Doorn wrote:
> During device removal all pending work and tasklets must
> be guaranteed to be halted. So far only the txstatus_tasklet
> was killed.
> 
> Signed-off-by: Ivo van Doorn <IvDoorn at gmail.com>

Acked-by: Gertjan van Wingerde <gwingerde at gmail.com>

> ---
> diff --git a/drivers/net/wireless/rt2x00/rt2x00dev.c b/drivers/net/wireless/rt2x00/rt2x00dev.c
> index 28835c9..b59d728 100644
> --- a/drivers/net/wireless/rt2x00/rt2x00dev.c
> +++ b/drivers/net/wireless/rt2x00/rt2x00dev.c
> @@ -1065,6 +1065,10 @@ void rt2x00lib_remove_dev(struct rt2x00_dev *rt2x00dev)
>  	 * Kill the tx status tasklet.
>  	 */
>  	tasklet_kill(&rt2x00dev->txstatus_tasklet);
> +	tasklet_kill(&rt2x00dev->pretbtt_tasklet);
> +	tasklet_kill(&rt2x00dev->tbtt_tasklet);
> +	tasklet_kill(&rt2x00dev->rxdone_tasklet);
> +	tasklet_kill(&rt2x00dev->autowake_tasklet);
>  
>  	/*
>  	 * Uninitialize device.
> 
> _______________________________________________
> users mailing list
> users at rt2x00.serialmonkey.com
> http://rt2x00.serialmonkey.com/mailman/listinfo/users_rt2x00.serialmonkey.com
> 




More information about the users mailing list