2022-11-03 14:01:13

by Kumar, M Chetan

[permalink] [raw]
Subject: RE: [PATCH net v1] net: wwan: iosm: Remove unneeded if_mutex lock

> -----Original Message-----
> From: [email protected] <[email protected]>
> Sent: Tuesday, November 1, 2022 11:21 AM
> To: Kumar, M Chetan <[email protected]>; linuxwwan
> <[email protected]>; [email protected]; [email protected];
> [email protected]; [email protected]; [email protected];
> [email protected]; [email protected]; [email protected]
> Cc: [email protected]; [email protected]; linux-arm-
> [email protected]; [email protected]; Liu, Haijun
> <[email protected]>; [email protected];
> [email protected]; zhaoping.shu
> <[email protected]>
> Subject: [PATCH net v1] net: wwan: iosm: Remove unneeded if_mutex lock
>
> From: "zhaoping.shu" <[email protected]>
>
> These WWAN network interface operations (create/delete/open/close) are
> already protected by RTNL lock, i.e., wwan_ops.newlink(),
> wwan_ops.dellink(), net_device_ops.ndo_open() and net_device.ndo_stop()
> are called with RTNL lock held.
> Therefore, this patch removes the unnecessary if_mutex.
>
> Signed-off-by: zhaoping.shu <[email protected]>

Reviewed-by: M Chetan Kumar <[email protected]>