[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YQaFM8OTlmde+ZFV@unreal>
Date: Sun, 1 Aug 2021 14:27:47 +0300
From: Leon Romanovsky <leon@...nel.org>
To: Li Zhijian <lizhijian@...fujitsu.com>
Cc: dledford@...hat.com, jgg@...pe.ca, linux-rdma@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] RDMA/mlx5: return the EFAULT per ibv_advise_mr(3)
On Sun, Aug 01, 2021 at 05:20:50PM +0800, Li Zhijian wrote:
> ibv_advise_mr(3) says:
> EFAULT In one of the following: o When the range requested is out of the MR bounds,
> or when parts of it are not part of the process address space. o One of the
> lkeys provided in the scatter gather list is invalid or with wrong write access
>
> Actually get_prefetchable_mr() will return NULL if it see above conditions
>
> Signed-off-by: Li Zhijian <lizhijian@...fujitsu.com>
> ---
> drivers/infiniband/hw/mlx5/odp.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
Thanks,
Reviewed-by: Leon Romanovsky <leonro@...dia.com>
Powered by blists - more mailing lists