[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150906202026.GA19371@electric-eye.fr.zoreil.com>
Date: Sun, 6 Sep 2015 22:20:26 +0200
From: Francois Romieu <romieu@...zoreil.com>
To: netdev@...r.kernel.org, David Miller <davem@...emloft.net>,
pomidorabelisima@...il.com
Subject: Re: [PATCH net 1/1] r8169: fix sleepable allocation during netdevice
stats retrieval.
Corinna Vinschen <vinschen@...hat.com> :
[...]
> - I'm pretty new to this stuff, so I don't understand this:
>
> The dma_alloc_coherent(...,GFP_KERNEL) call is not new in the code,
> it's there since at least 2010. It appears to work fine in the
> context of @get_ethtool_stats. Why does this not work in the context
> of @ndo_get_stats64?
get_ethtool_stats is only called under RTNL, not with spinlock held.
ndo_get_stats64 is called under dev_base_lock from sysfs.
--
Ueimor
--
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