[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CADvbK_eiSQFT9uKfJZf_8omcFyiVuh+XbnywzC2wszxqPuThjQ@mail.gmail.com>
Date: Sat, 5 Mar 2016 22:44:35 +0800
From: Xin Long <lucien.xin@...il.com>
To: Nikolay Aleksandrov <nikolay@...ulusnetworks.com>
Cc: network dev <netdev@...r.kernel.org>, davem <davem@...emloft.net>,
Hannes Frederic Sowa <hannes@...essinduktion.org>
Subject: Re: [PATCH net] bridge: a netlink notification should be sent
whenever those attributes change
On Thu, Mar 3, 2016 at 8:29 PM, Nikolay Aleksandrov
<nikolay@...ulusnetworks.com> wrote:
>
> This is incorrect because you don't have rtnl here, bridge device sysfs
> options take care of rtnl only on per-option basis and they obtain and
> release it themselves, so you won't have rtnl held when you call
> netdev_state_change. While I agree that this is needed, a larger change
> would be necessary for br_sysfs_br.c.
Sorry, I can't follow you, cause I didn't see any held in dev_ioctl, like:
ipip6_tunnel_ioctl
ipip6_tunnel_update
netdev_state_change
why sysfs have to hold rtnl ?
> Off-topic: I've been looking into factoring out the bond option API and reusing
> it here as it already has all of this handled, but I won't have time to finish
> it before the next merge window, so if you fix the issue here I'm okay with
> this as interim solution.
>
> Cheers,
> Nik
>
Powered by blists - more mailing lists