]> asedeno.scripts.mit.edu Git - linux.git/commit
RDMA/umem: Fix ib_umem_find_best_pgsz()
authorArtemy Kovalyov <artemyko@mellanox.com>
Tue, 28 Jan 2020 13:56:12 +0000 (15:56 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 28 Jan 2020 18:10:54 +0000 (14:10 -0400)
commit36798d5ae1af62e830c5e045b2e41ce038690c61
tree04f0a41e186ad0386435f2a53039ceb8cff3c99d
parentea660ad7c1c476fd6e5e3b17780d47159db71dea
RDMA/umem: Fix ib_umem_find_best_pgsz()

Except for the last entry, the ending iova alignment sets the maximum
possible page size as the low bits of the iova must be zero when starting
the next chunk.

Fixes: 4a35339958f1 ("RDMA/umem: Add API to find best driver supported page size in an MR")
Link: https://lore.kernel.org/r/20200128135612.174820-1-leon@kernel.org
Signed-off-by: Artemy Kovalyov <artemyko@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Tested-by: Gal Pressman <galpress@amazon.com>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/umem.c