Subject: Re: [RFC PATCH] e100: Fix workqueue race

From: Stephen Hemminger <[email-masked]>
Date: Thu, 21 Jan 2010 09:20:35 -0800

On Thu, 21 Jan 2010 16:48:01 +0000
Alan Cox <[email-masked]> wrote:

> (Incidentally this doesn't seem to be the only net driver that looks
> suspect here)
> 
> e100: Fix the TX workqueue race
> 
> From: Alan Cox <[email-masked]>
> 
> Nothing stops the workqueue being left to run in parallel with close or a
> few other operations. This causes double unmaps and the like.
> 
> See kerneloops.org #1041230 for an example
> 
> Signed-off-by: Alan Cox <[email-masked]>

Most drivers solve this by getting rtnl_lock in the timeout work
function.

--