]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: kTLS, Avoid kzalloc(GFP_KERNEL) under spinlock
authorSaeed Mahameed <saeedm@nvidia.com>
Tue, 8 Sep 2020 05:54:43 +0000 (22:54 -0700)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 22 Sep 2020 00:22:25 +0000 (17:22 -0700)
commit40dad847d7ec8bc43bb0ad34ddddc85d2b7c8ac4
treeaa59ac3d25dac7fbb5abd6545e163786b1759276
parent929c08b6323d7df0441b2876b3579ebf80d27296
net/mlx5e: kTLS, Avoid kzalloc(GFP_KERNEL) under spinlock

The spinlock only needed when accessing the channel's icosq, grab the lock
after the buf allocation in resync_post_get_progress_params() to avoid
kzalloc(GFP_KERNEL) in atomic context.

Fixes: d92bf3a50da0 ("net/mlx5e: kTLS, Add kTLS RX resync support")
Reported-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_rx.c