Re: [net-next][PATCH 1/2] rds: handle unsupported rdma request to fs dax memory

2019-04-29 Thread santosh.shilim...@oracle.com
On 4/29/19 3:25 PM, David Miller wrote: From: Santosh Shilimkar Date: Thu, 25 Apr 2019 17:44:29 -0700 @@ -158,8 +158,9 @@ static int rds_pin_pages(unsigned long user_addr, unsigned int nr_pages, { int ret; - ret = get_user_pages_fast(user_addr, nr_pages, write, pages); - +

Re: [net-next][PATCH 1/2] rds: handle unsupported rdma request to fs dax memory

2019-04-29 Thread David Miller
From: Santosh Shilimkar Date: Thu, 25 Apr 2019 17:44:29 -0700 > @@ -158,8 +158,9 @@ static int rds_pin_pages(unsigned long user_addr, > unsigned int nr_pages, > { > int ret; > > - ret = get_user_pages_fast(user_addr, nr_pages, write, pages); > - > + /* get_user_pages return -EO

Re: [net-next][PATCH 1/2] rds: handle unsupported rdma request to fs dax memory

2019-04-25 Thread Yanjun Zhu
On 2019/4/26 8:44, Santosh Shilimkar wrote: From: Hans Westgaard Ry RDS doesn't support RDMA on memory apertures that require On Demand Paging (ODP), such as FS DAX memory. User applications can try to use RDS to perform RDMA over such memories and since it doesn't report any failure, it can

[net-next][PATCH 1/2] rds: handle unsupported rdma request to fs dax memory

2019-04-25 Thread Santosh Shilimkar
From: Hans Westgaard Ry RDS doesn't support RDMA on memory apertures that require On Demand Paging (ODP), such as FS DAX memory. User applications can try to use RDS to perform RDMA over such memories and since it doesn't report any failure, it can lead to unexpected issues like memory corruption