Messages in this thread | | | Date | Wed, 3 Jul 2019 16:18:46 +0200 | From | Michal Kubecek <> | Subject | Re: [PATCH net-next v6 07/15] ethtool: support for netlink notifications |
| |
On Wed, Jul 03, 2019 at 03:39:54PM +0200, Johannes Berg wrote: > On Tue, 2019-07-02 at 13:50 +0200, Michal Kubecek wrote: > > > > +static bool ethnl_ok __read_mostly; > > Not sure it makes a big difference, but it could probably be > __ro_after_init instead?
Yes, that's more fitting; the flag is initialized to false, changes to true once ethtool netlink is ready and never changes back. I wasn't aware of __ro_after_init annotation.
Michal
| |