[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <487C7CCD.8060708@cn.fujitsu.com>
Date: Tue, 15 Jul 2008 18:32:45 +0800
From: Wang Chen <wangchen@...fujitsu.com>
To: David Miller <davem@...emloft.net>
CC: kaber@...sh.net, netdev@...r.kernel.org
Subject: Re: [PATCH] af_packet: po->mclist needs locker in reader side
David Miller said the following on 2008-7-15 17:11:
> From: Wang Chen <wangchen@...fujitsu.com>
> Date: Tue, 15 Jul 2008 15:52:31 +0800
>
>> As my understanding, packet_dev_mclist() is the only reader who doesn't
>> use same lock as writers(actually it doesn't use any lock).
>> My proposal is that use RTNL to prevent synchronous access to po->mclist.
>> Because packet_dev_mclist() is only called when device be unregistered,
>> the lock will not affect speed too much.
>>
>> Signed-off-by: Wang Chen <wangchen@...fujitsu.com>
>
> I took a look and it turns out that the RTNL lock is already held when
> that notifier runs, so it seems everything is fine here already.
>
> So I'll ignore this patch :)
Yes. register_netdevice() holds the lock ;)
--
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