# \[PATCH net 0/2\] devlink: Shared devlink locking fixes

- From: Cosmin Ratiu \<hidden\>
- Date: 2026-12-02 13:39:32 
- List: netdev
- Page: https://ratatoskr.run/netdev/2026/12/18068448
- Thread: https://ratatoskr.run/netdev/2026/12/18068448/t.md

```text
This patch pair fixes a design flaw in the cross device rate scheduling
([1]) which resulted in a bug on mlx5.
One patch fixes the code, the other one the devlink shd documentation.

[1] https://lore.kernel.org/netdev/20260701073254.754518-1-tariqt@nvidia.com/

Cosmin Ratiu (2):
  devlink: Lock the shared instance directly for cross-device rates
  devlink: Restore parent -> nested instance locking order

 .../networking/devlink/devlink-shared.rst     |  7 ++-
 Documentation/networking/devlink/index.rst    | 11 +++-
 include/net/devlink.h                         |  7 ++-
 net/devlink/core.c                            | 61 +++++++++++++------
 net/devlink/devl_internal.h                   | 11 ++--
 net/devlink/rate.c                            | 53 +++++++++-------
 net/devlink/sh_dev.c                          |  2 +
 7 files changed, 103 insertions(+), 49 deletions(-)

-- 
2.53.0

```
