net/mlx5: fix r/w lock usage in DMA unmap
authorFeifei Wang <feifei.wang2@arm.com>
Thu, 27 May 2021 09:48:06 +0000 (17:48 +0800)
committerRaslan Darawsheh <rasland@nvidia.com>
Thu, 8 Jul 2021 20:09:27 +0000 (22:09 +0200)
commit1c196da274b82e6f1642bde7b1c407a2066caee1
tree5abbe63aa156e4e03a3da622d04439191201176e
parent48fbc1be82b551e41c58e94de780fdd2ffaaeb78
net/mlx5: fix r/w lock usage in DMA unmap

For mlx5 DMA unmap, write lock should be used for rebuilding memory
region cache table rather than read lock.

Fixes: 989e999d9305 ("net/mlx5: support PCI device DMA map and unmap")
Cc: stable@dpdk.org
Signed-off-by: Feifei Wang <feifei.wang2@arm.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/net/mlx5/mlx5_mr.c