[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20100724.210446.115927978.davem@davemloft.net>
Date: Sat, 24 Jul 2010 21:04:46 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: shemminger@...tta.com
Cc: hadi@...erus.ca, netdev@...r.kernel.org
Subject: Re: [PATCH] net sched: fix race in mirred device removal
From: Stephen Hemminger <shemminger@...tta.com>
Date: Thu, 22 Jul 2010 21:45:04 -0700
> This fixes hang when target device of mirred packet classifier
> action is removed.
>
> If a mirror or redirection action is configured to cause packets
> to go to another device, the classifier holds a ref count, but was assuming
> the adminstrator cleaned up all redirections before removing. The fix
> is to add a notifier and cleanup during unregister.
>
> The new list is implicitly protected by RTNL mutex because
> it is held during filter add/delete as well as notifier.
>
> Signed-off-by: Stephen Hemminger <shemminger@...tta.com>
> Acked-by: Jamal Hadi Salim <hadi@...erus.ca>
Applied to net-2.6, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists