Re: [patch net-next-2.6 v2] net: consolidate and fix ethtool_ops->get_settings calling |
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Jiri Pirko <jpirko@xxxxxxxxxx>
- Subject: Re: [patch net-next-2.6 v2] net: consolidate and fix ethtool_ops->get_settings calling
- From: Ben Hutchings <bhutchings@xxxxxxxxxxxxxx>
- Date: Fri, 02 Sep 2011 19:46:01 +0100
- Cc: amit.salecha@xxxxxxxxxx, bridge@xxxxxxxxxxxxxxxxxxxxxxxxxx, linux-mips@xxxxxxxxxxxxxx, devel@xxxxxxxxxxxxx, linux-scsi@xxxxxxxxxxxxxxx, decot@xxxxxxxxxx, therbert@xxxxxxxxxx, robert.w.love@xxxxxxxxx, eric.dumazet@xxxxxxxxx, fubar@xxxxxxxxxx, JBottomley@xxxxxxxxxxxxx, xiaosuo@xxxxxxxxx, paulmck@xxxxxxxxxxxxxxxxxx, alexander.h.duyck@xxxxxxxxx, mirq-linux@xxxxxxxxxxxx, greearb@xxxxxxxxxxxxxxx, bprakash@xxxxxxxxxxxx, laijs@xxxxxxxxxxxxxx, netdev@xxxxxxxxxxxxxxx, ralf@xxxxxxxxxxxxxx, davem@xxxxxxxxxxxxx, loke.chetan@xxxxxxxxx
- In-reply-to: <20110902122630.GC1991@minipsycho>
- Organization: Solarflare Communications
- References: <1314905304-16485-1-git-send-email-jpirko@redhat.com> <20110902122630.GC1991@minipsycho>
On Fri, 2011-09-02 at 14:26 +0200, Jiri Pirko wrote:
> This patch does several things:
> - introduces __ethtool_get_settings which is called from ethtool code and
> from dev_ethtool_get_settings() as well.
> - dev_ethtool_get_settings() becomes rtnl wrapper for
> __ethtool_get_settings()
[...]
I don't like this locking change. Most other dev_*() functions require
the caller to hold RTNL, and it will break any OOT module calling
dev_ethtool_get_settings() without producing any warning at compile
time. Why not put an ASSERT_RTNL() in it instead?
The rest of this looks fine.
Ben.
--
Ben Hutchings, Staff Engineer, Solarflare
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.
_______________________________________________
Bridge mailing list
Bridge@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/bridge
[Netdev]
[AoE Tools]
[Linux Wireless]
[Kernel Newbies]
[Security]
[Linux for Hams]
[Netfilter]
[Bugtraq]
[Photo]
[Yosemite]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux RAID]
[Linux Admin]
[Samba]
[Video 4 Linux]
[Linux Resources]