]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RDMA/mlx5: Fix MR cache initialization error flow
authorMichael Guralnik <michaelgur@nvidia.com>
Thu, 13 Mar 2025 14:29:48 +0000 (16:29 +0200)
committerLeon Romanovsky <leon@kernel.org>
Tue, 18 Mar 2025 10:30:47 +0000 (06:30 -0400)
commita0130ef84b00c68ba0b79ee974a0f01459741421
tree22b5a5142627bbfbd374bcb8c22aa7ab4ff04fa7
parentfd24c9ef6c8f12fd045524c7cae1992f7967e94b
RDMA/mlx5: Fix MR cache initialization error flow

Destroy all previously created cache entries and work queue when rolling
back the MR cache initialization upon an error.

Fixes: 73d09b2fe833 ("RDMA/mlx5: Introduce mlx5r_cache_rb_key")
Signed-off-by: Michael Guralnik <michaelgur@nvidia.com>
Reviewed-by: Yishai Hadas <yishaih@nvidia.com>
Link: https://patch.msgid.link/c41d525fb3c72e28dd38511bf3aaccb5d584063e.1741875692.git.leon@kernel.org
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/mlx5/mr.c