]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net/mlx5: fs, retry insertion to hash table on EBUSY
authorMark Bloch <mbloch@nvidia.com>
Thu, 19 Dec 2024 17:58:35 +0000 (19:58 +0200)
committerJakub Kicinski <kuba@kernel.org>
Mon, 23 Dec 2024 18:34:45 +0000 (10:34 -0800)
commit586face88106481e8c527675a837da8a3ab6677d
tree9920517474090b06deaf579e4166efe91a15cf7c
parent31d1356b8fdcdb7fe845874b598cce552a151c64
net/mlx5: fs, retry insertion to hash table on EBUSY

When inserting into an rhashtable faster than it can grow, an -EBUSY error
may be encountered. Modify the insertion logic to retry on -EBUSY until
either a successful insertion or a genuine error is returned.

Signed-off-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Link: https://patch.msgid.link/20241219175841.1094544-6-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c