On Thu, Dec 19, 2019 at 03:46:45PM +0200, Leon Romanovsky wrote: > From: Yishai Hadas <yishaih@xxxxxxxxxxxx> > > When calling get_user_pages_remote() need to work with granularity of > PAGE_SIZE. > > Fix the calculation of how many entries can be read in one call to > consider that. > > Fixes: 403cd12e2cf7 ("IB/umem: Add contiguous ODP support") > Signed-off-by: Yishai Hadas <yishaih@xxxxxxxxxxxx> > Reviewed-by: Artemy Kovalyov <artemyko@xxxxxxxxxxxx> > Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxxxx> > --- > drivers/infiniband/core/umem_odp.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxxxx> Jason