RE: [PATCH 2/6] cifs: Allocate validate negoation request through kmalloc

2018-04-17 Thread Long Li
> Subject: RE: [PATCH 2/6] cifs: Allocate validate negoation request through > kmalloc > > > > > -Original Message- > > From: linux-rdma-ow...@vger.kernel.org [mailto:linux-rdma- > > ow...@vger.kernel.org] On Behalf Of Long Li > > Sent: Monda

RE: [PATCH 2/6] cifs: Allocate validate negoation request through kmalloc

2018-04-17 Thread Long Li
> Subject: RE: [PATCH 2/6] cifs: Allocate validate negoation request through > kmalloc > > > > > -Original Message- > > From: linux-rdma-ow...@vger.kernel.org [mailto:linux-rdma- > > ow...@vger.kernel.org] On Behalf Of Long Li > > Sent: Monda

Re: [PATCH 2/6] cifs: Allocate validate negoation request through kmalloc

2018-04-17 Thread Greg KH
On Mon, Apr 16, 2018 at 05:49:14PM -0700, Long Li wrote: > From: Long Li > > The data buffer allocated on the stack can't be DMA'ed, and hence can't send > through RDMA via SMB Direct. > > Fix this by allocating the request on the heap in smb3_validate_negotiate. > >

Re: [PATCH 2/6] cifs: Allocate validate negoation request through kmalloc

2018-04-17 Thread Greg KH
On Mon, Apr 16, 2018 at 05:49:14PM -0700, Long Li wrote: > From: Long Li > > The data buffer allocated on the stack can't be DMA'ed, and hence can't send > through RDMA via SMB Direct. > > Fix this by allocating the request on the heap in smb3_validate_negotiate. > > Signed-off-by: Long Li >

RE: [PATCH 2/6] cifs: Allocate validate negoation request through kmalloc

2018-04-16 Thread Parav Pandit
> -Original Message- > From: linux-rdma-ow...@vger.kernel.org [mailto:linux-rdma- > ow...@vger.kernel.org] On Behalf Of Long Li > Sent: Monday, April 16, 2018 7:49 PM > To: Steve French ; linux-c...@vger.kernel.org; samba- > techni...@lists.samba.org;

RE: [PATCH 2/6] cifs: Allocate validate negoation request through kmalloc

2018-04-16 Thread Parav Pandit
> -Original Message- > From: linux-rdma-ow...@vger.kernel.org [mailto:linux-rdma- > ow...@vger.kernel.org] On Behalf Of Long Li > Sent: Monday, April 16, 2018 7:49 PM > To: Steve French ; linux-c...@vger.kernel.org; samba- > techni...@lists.samba.org; linux-kernel@vger.kernel.org; linux-