[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f6e0b8c5-7fb9-babe-0114-350e7d6b2186@cogentembedded.com>
Date: Thu, 24 May 2018 20:01:07 +0300
From: Sergei Shtylyov <sergei.shtylyov@...entembedded.com>
To: Andrew Lunn <andrew@...n.ch>
Cc: Vladimir Zapolskiy <vz@...ia.com>,
Vladimir Zapolskiy <vladimir_zapolskiy@...tor.com>,
"David S. Miller" <davem@...emloft.net>, netdev@...r.kernel.org,
linux-renesas-soc@...r.kernel.org
Subject: Re: [PATCH 1/6] ravb: remove custom .nway_reset from ethtool ops
On 05/24/2018 07:44 PM, Andrew Lunn wrote:
>>>>> The change fixes a sleep in atomic context issue, which can be
>>>>> always triggered by running 'ethtool -r' command, because
>>>>> phy_start_aneg() protects phydev fields by a mutex.
>>
>> You don't say that *not* grabbing the spinlock is safe...
>
> For it to be unsafe, i think that would mean phylib would need to call
> back into the MAC driver? The only way that could happen is via the
> adjust_link call. And that will deadlock, since it takes the same
> lock.
>
> Or am i/we missing something?
It doesn't take any locks currently, only patches #3/#6 makes it do so...
> Andrew
MBR, Sergei
Powered by blists - more mailing lists