On Thu, Apr 16, 2020 at 09:02:01PM +0300, Leon Romanovsky wrote: > > diff --git a/drivers/infiniband/Kconfig b/drivers/infiniband/Kconfig > > index ade8638..1dcfc59 100644 > > +++ b/drivers/infiniband/Kconfig > > @@ -63,6 +63,16 @@ config INFINIBAND_ON_DEMAND_PAGING > > memory regions without pinning their pages, fetching the > > pages on demand instead. > > > > +config INFINIBAND_DMABUF > > There is no need to add extra config, it is not different from any > other verbs feature which is handled by some sort of mask. That works too, but then it infiniband_user_mem needs the depends on DMABUF || !DMABUF construct > > + if (access & IB_ACCESS_ON_DEMAND) > > + return ERR_PTR(-EOPNOTSUPP); > > Does dma-buf really need to prohibit ODP? ODP fundamentally can only be applied to a mm_struct Jason