public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next 0/6] net/mlx5: Move notifiers outside the devlink lock
@ 2025-11-16 20:45 Tariq Toukan
  2025-11-16 20:45 ` [PATCH net-next 1/6] net/mlx5: Initialize events outside " Tariq Toukan
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Tariq Toukan @ 2025-11-16 20:45 UTC (permalink / raw)
  To: Eric Dumazet, Jakub Kicinski, Paolo Abeni, Andrew Lunn,
	David S. Miller
  Cc: Saeed Mahameed, Leon Romanovsky, Tariq Toukan, Mark Bloch, netdev,
	linux-rdma, linux-kernel, Gal Pressman, Moshe Shemesh,
	Carolina Jubran, Cosmin Ratiu, Jiri Pirko

Hi,

This series by Cosmin moves blocking notifier registration in the mlx5
driver outside the devlink lock during probe.

This is mostly a no-op refactoring that consists of multiple pieces.
It is necessary because upcoming code will introduce a potential locking
cycle between the devlink lock and the blocking notifier head mutexes,
so these notifiers must move out of the devlink-locked critical section.

Regards,
Tariq


Cosmin Ratiu (6):
  net/mlx5: Initialize events outside devlink lock
  net/mlx5: Move the esw mode notifier chain outside the devlink lock
  net/mlx5: Move the vhca event notifier outside of the devlink lock
  net/mlx5: Move the SF HW table notifier outside the devlink lock
  net/mlx5: Move the SF table notifiers outside the devlink lock
  net/mlx5: Move SF dev table notifier registration outside the PF
    devlink lock

 .../net/ethernet/mellanox/mlx5/core/eswitch.c | 13 +--
 .../net/ethernet/mellanox/mlx5/core/eswitch.h |  7 +-
 .../net/ethernet/mellanox/mlx5/core/main.c    | 70 +++++++++++----
 .../ethernet/mellanox/mlx5/core/sf/dev/dev.c  | 48 ++++++----
 .../ethernet/mellanox/mlx5/core/sf/dev/dev.h  | 11 +++
 .../ethernet/mellanox/mlx5/core/sf/devlink.c  | 90 ++++++++++++-------
 .../ethernet/mellanox/mlx5/core/sf/hw_table.c | 61 ++++++++-----
 .../net/ethernet/mellanox/mlx5/core/sf/sf.h   | 20 ++++-
 .../mellanox/mlx5/core/sf/vhca_event.c        | 69 ++++++--------
 .../mellanox/mlx5/core/sf/vhca_event.h        |  5 ++
 include/linux/mlx5/driver.h                   | 10 ++-
 11 files changed, 253 insertions(+), 151 deletions(-)


base-commit: c9dfb92de0738eb7fe6a591ad1642333793e8b6e
-- 
2.31.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-11-20  4:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-16 20:45 [PATCH net-next 0/6] net/mlx5: Move notifiers outside the devlink lock Tariq Toukan
2025-11-16 20:45 ` [PATCH net-next 1/6] net/mlx5: Initialize events outside " Tariq Toukan
2025-11-16 20:45 ` [PATCH net-next 2/6] net/mlx5: Move the esw mode notifier chain outside the " Tariq Toukan
2025-11-16 20:45 ` [PATCH net-next 3/6] net/mlx5: Move the vhca event notifier outside of " Tariq Toukan
2025-11-16 20:45 ` [PATCH net-next 4/6] net/mlx5: Move the SF HW table notifier outside " Tariq Toukan
2025-11-16 20:45 ` [PATCH net-next 5/6] net/mlx5: Move the SF table notifiers " Tariq Toukan
2025-11-16 20:45 ` [PATCH net-next 6/6] net/mlx5: Move SF dev table notifier registration outside the PF " Tariq Toukan
2025-11-20  4:40 ` [PATCH net-next 0/6] net/mlx5: Move notifiers outside the " patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox