Re: [PATCH RESEND] RDMA/rxe: Don't overwrite errno from ib_umem_get()
From: Jason Gunthorpe <jgg@nvidia.com>
Date: 2021-06-22 00:06:04
From: Jason Gunthorpe <jgg@nvidia.com>
Date: 2021-06-22 00:06:04
On Mon, Jun 21, 2021 at 03:14:56PM +0800, ice_yangxiao@163.com wrote:
From: Xiao Yang <yangx.jy@fujitsu.com> 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. Signed-off-by: Xiao Yang <yangx.jy@fujitsu.com> --- drivers/infiniband/sw/rxe/rxe_mr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied to for-next, thanks Jason