tmp_suning_uos_patched/drivers/infiniband/sw
Xiao Yang 1df3603039 RDMA/rxe: Don't overwrite errno from ib_umem_get()
[ Upstream commit 20ec0a6d6016aa28b9b3299be18baef1a0f91cd2 ]

rxe_mr_init_user() always returns the fixed -EINVAL when ib_umem_get()
fails so it's hard for user to know which actual error happens in
ib_umem_get(). For example, ib_umem_get() will return -EOPNOTSUPP when
trying to pin pages on a DAX file.

Return actual error as mlx4/mlx5 does.

Link: https://lore.kernel.org/r/20210621071456.4259-1-ice_yangxiao@163.com
Signed-off-by: Xiao Yang <yangx.jy@fujitsu.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-07-19 09:44:52 +02:00
..
rdmavt RDMA/core: remove use of dma_virt_ops 2021-01-09 13:46:24 +01:00
rxe RDMA/rxe: Don't overwrite errno from ib_umem_get() 2021-07-19 09:44:52 +02:00
siw RDMA/siw: Release xarray entry 2021-05-26 12:06:47 +02:00
Makefile rdma/siw: addition to kernel build environment 2019-07-02 17:03:41 -03:00