[Intel-wired-lan] [PATCH net] ice: Avoid RTNL lock when re-creating auxiliary device
G, GurucharanX
gurucharanx.g at intel.com
Thu Feb 10 05:29:10 UTC 2022
> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of
> Dave Ertman
> Sent: Friday, January 21, 2022 5:58 AM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [PATCH net] ice: Avoid RTNL lock when re-creating
> auxiliary device
>
> If a call to re-create the auxiliary device happens in a context that has already
> taken the RTNL lock, then the call flow that recreates auxiliary device can
> hang if there is another attempt to claim the RTNL lock by the auxiliary driver.
>
> To avoid this, any call to re-create auxiliary devices that comes from an
> source that is holding the RTNL lock (e.g. netdev notifier when interface exits
> a bond) should execute in a separate thread. To accomplish this, add a flag to
> the PF that will be evaluated in the service task and dealt with there.
>
> Fixes: f9f5301e7e2d ("ice: Register auxiliary device to provide RDMA")
> Signed-off-by: Dave Ertman <david.m.ertman at intel.com>
> ---
> drivers/net/ethernet/intel/ice/ice.h | 3 ++-
> drivers/net/ethernet/intel/ice/ice_main.c | 3 +++
> 2 files changed, 5 insertions(+), 1 deletion(-)
>
Tested-by: Gurucharan G <gurucharanx.g at intel.com> (A Contingent worker at Intel)
More information about the Intel-wired-lan
mailing list