]> www.infradead.org Git - nvme.git/commit
net/mlx5: HWS, use lock classes for bwc locks
authorCosmin Ratiu <cratiu@nvidia.com>
Tue, 15 Oct 2024 09:32:04 +0000 (12:32 +0300)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 17 Oct 2024 10:14:07 +0000 (12:14 +0200)
commit9addffa3435973e016f066e13f950be5eed73c06
tree0c3269cb169aec52352ce9423c73d87868544fc8
parent45bcbd49224ac5aec5e1239de9060e431ca2acd9
net/mlx5: HWS, use lock classes for bwc locks

The HWS BWC API uses one lock per queue and usually acquires one of
them, except when doing changes which require locking all queues in
order. Naturally, lockdep isn't too happy about acquiring the same lock
class multiple times, so inform it that each queue lock is a different
class to avoid false positives.

Fixes: 2ca62599aa0b ("net/mlx5: HWS, added send engine and context handling")
Signed-off-by: Cosmin Ratiu <cratiu@nvidia.com>
Signed-off-by: Yevgeny Kliteynik <kliteyn@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_context.h
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_send.c