]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net/mlx5: Move command entry freeing outside of spinlock
authorLi RongQing <lirongqing@baidu.com>
Tue, 31 Mar 2026 12:26:04 +0000 (08:26 -0400)
committerJakub Kicinski <kuba@kernel.org>
Thu, 2 Apr 2026 01:53:09 +0000 (18:53 -0700)
commit2897c697b3266cae753e2349098cd98f36891c19
tree539d4bfa0b1b5c5f11ac87bc8acb3e0825abeee9
parent4cbcf82e26b6324a56c6d9c5bc49d59b6076b54d
net/mlx5: Move command entry freeing outside of spinlock

Move the kfree() call outside the critical section to reduce lock
holding time. This aligns with the general principle of minimizing
work under locks.

Signed-off-by: Li RongQing <lirongqing@baidu.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20260331122604.1933-1-lirongqing@baidu.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/cmd.c