On Mon, Nov 09, 2020 at 11:22:57AM -0800, Jianxin Xiong wrote: > + page_size = ib_umem_find_best_pgsz(&umem_dmabuf->umem, PAGE_SIZE, > + umem_dmabuf->umem.iova); > + > + if (WARN_ON(cur != end || page_size != PAGE_SIZE)) { > + ib_umem_dmabuf_unmap_pages(umem_dmabuf); > + return -EINVAL; > + } This is not a warn_on situation, users can trigger this Jason