Re: [PATCH] IB/umem: use tgid instead of pid in ib_umem structure

2018-05-08 Thread 858585 jemmy
On Tue, May 8, 2018 at 2:30 PM, Jason Gunthorpe wrote: > On Mon, May 07, 2018 at 09:38:53AM +0800, 858585 jemmy wrote: >> On Sat, May 5, 2018 at 2:23 AM, Jason Gunthorpe wrote: >> > On Fri, May 04, 2018 at 04:51:15PM +0800, 858585 jemmy wrote: >> >> On Fri, May 4, 2018 at 11:14 AM, 858585 jemmy

Re: [PATCH] IB/umem: use tgid instead of pid in ib_umem structure

2018-05-07 Thread Jason Gunthorpe
On Mon, May 07, 2018 at 09:38:53AM +0800, 858585 jemmy wrote: > On Sat, May 5, 2018 at 2:23 AM, Jason Gunthorpe wrote: > > On Fri, May 04, 2018 at 04:51:15PM +0800, 858585 jemmy wrote: > >> On Fri, May 4, 2018 at 11:14 AM, 858585 jemmy > >> wrote: > >> > On Thu, May 3, 2018 at 11:33 PM, Jason Gu

Re: [PATCH] IB/umem: use tgid instead of pid in ib_umem structure

2018-05-06 Thread 858585 jemmy
On Sat, May 5, 2018 at 2:23 AM, Jason Gunthorpe wrote: > On Fri, May 04, 2018 at 04:51:15PM +0800, 858585 jemmy wrote: >> On Fri, May 4, 2018 at 11:14 AM, 858585 jemmy wrote: >> > On Thu, May 3, 2018 at 11:33 PM, Jason Gunthorpe wrote: >> >> On Thu, May 03, 2018 at 10:04:34PM +0800, Lidong Chen

Re: [PATCH] IB/umem: use tgid instead of pid in ib_umem structure

2018-05-04 Thread Jason Gunthorpe
On Fri, May 04, 2018 at 04:51:15PM +0800, 858585 jemmy wrote: > On Fri, May 4, 2018 at 11:14 AM, 858585 jemmy wrote: > > On Thu, May 3, 2018 at 11:33 PM, Jason Gunthorpe wrote: > >> On Thu, May 03, 2018 at 10:04:34PM +0800, Lidong Chen wrote: > >>> The userspace may invoke ibv_reg_mr and ibv_dere

Re: [PATCH] IB/umem: use tgid instead of pid in ib_umem structure

2018-05-04 Thread 陈立东
> 在 2018年5月4日,21:39,Leon Romanovsky 写道: > >> On Fri, May 04, 2018 at 04:32:38PM +0800, 858585 jemmy wrote: >>> On Fri, May 4, 2018 at 6:01 AM, Jason Gunthorpe wrote: On Thu, May 03, 2018 at 09:43:01PM +0300, Leon Romanovsky wrote: > On Thu, May 03, 2018 at 12:26:56PM -0600, Jason Gunt

Re: [PATCH] IB/umem: use tgid instead of pid in ib_umem structure

2018-05-04 Thread Leon Romanovsky
On Fri, May 04, 2018 at 04:32:38PM +0800, 858585 jemmy wrote: > On Fri, May 4, 2018 at 6:01 AM, Jason Gunthorpe wrote: > > On Thu, May 03, 2018 at 09:43:01PM +0300, Leon Romanovsky wrote: > >> On Thu, May 03, 2018 at 12:26:56PM -0600, Jason Gunthorpe wrote: > >> > On Thu, May 03, 2018 at 09:12:35P

Re: [PATCH] IB/umem: use tgid instead of pid in ib_umem structure

2018-05-04 Thread 858585 jemmy
On Fri, May 4, 2018 at 11:14 AM, 858585 jemmy wrote: > On Thu, May 3, 2018 at 11:33 PM, Jason Gunthorpe wrote: >> On Thu, May 03, 2018 at 10:04:34PM +0800, Lidong Chen wrote: >>> The userspace may invoke ibv_reg_mr and ibv_dereg_mr by different threads. >>> If when ibv_dereg_mr invoke and the thr

Re: [PATCH] IB/umem: use tgid instead of pid in ib_umem structure

2018-05-04 Thread 858585 jemmy
On Fri, May 4, 2018 at 6:01 AM, Jason Gunthorpe wrote: > On Thu, May 03, 2018 at 09:43:01PM +0300, Leon Romanovsky wrote: >> On Thu, May 03, 2018 at 12:26:56PM -0600, Jason Gunthorpe wrote: >> > On Thu, May 03, 2018 at 09:12:35PM +0300, Leon Romanovsky wrote: >> > > On Thu, May 03, 2018 at 09:33:1

Re: [PATCH] IB/umem: use tgid instead of pid in ib_umem structure

2018-05-03 Thread 858585 jemmy
On Thu, May 3, 2018 at 11:33 PM, Jason Gunthorpe wrote: > On Thu, May 03, 2018 at 10:04:34PM +0800, Lidong Chen wrote: >> The userspace may invoke ibv_reg_mr and ibv_dereg_mr by different threads. >> If when ibv_dereg_mr invoke and the thread which invoked ibv_reg_mr has >> exited, get_pid_task wi

Re: [PATCH] IB/umem: use tgid instead of pid in ib_umem structure

2018-05-03 Thread 858585 jemmy
On Thu, May 3, 2018 at 11:33 PM, Jason Gunthorpe wrote: > On Thu, May 03, 2018 at 10:04:34PM +0800, Lidong Chen wrote: >> The userspace may invoke ibv_reg_mr and ibv_dereg_mr by different threads. >> If when ibv_dereg_mr invoke and the thread which invoked ibv_reg_mr has >> exited, get_pid_task wi

Re: [PATCH] IB/umem: use tgid instead of pid in ib_umem structure

2018-05-03 Thread Jason Gunthorpe
On Thu, May 03, 2018 at 09:43:01PM +0300, Leon Romanovsky wrote: > On Thu, May 03, 2018 at 12:26:56PM -0600, Jason Gunthorpe wrote: > > On Thu, May 03, 2018 at 09:12:35PM +0300, Leon Romanovsky wrote: > > > On Thu, May 03, 2018 at 09:33:10AM -0600, Jason Gunthorpe wrote: > > > > On Thu, May 03, 201

Re: [PATCH] IB/umem: use tgid instead of pid in ib_umem structure

2018-05-03 Thread Leon Romanovsky
On Thu, May 03, 2018 at 12:26:56PM -0600, Jason Gunthorpe wrote: > On Thu, May 03, 2018 at 09:12:35PM +0300, Leon Romanovsky wrote: > > On Thu, May 03, 2018 at 09:33:10AM -0600, Jason Gunthorpe wrote: > > > On Thu, May 03, 2018 at 10:04:34PM +0800, Lidong Chen wrote: > > > > The userspace may invok

Re: [PATCH] IB/umem: use tgid instead of pid in ib_umem structure

2018-05-03 Thread Jason Gunthorpe
On Thu, May 03, 2018 at 09:12:35PM +0300, Leon Romanovsky wrote: > On Thu, May 03, 2018 at 09:33:10AM -0600, Jason Gunthorpe wrote: > > On Thu, May 03, 2018 at 10:04:34PM +0800, Lidong Chen wrote: > > > The userspace may invoke ibv_reg_mr and ibv_dereg_mr by different threads. > > > If when ibv_der

Re: [PATCH] IB/umem: use tgid instead of pid in ib_umem structure

2018-05-03 Thread Leon Romanovsky
On Thu, May 03, 2018 at 09:33:10AM -0600, Jason Gunthorpe wrote: > On Thu, May 03, 2018 at 10:04:34PM +0800, Lidong Chen wrote: > > The userspace may invoke ibv_reg_mr and ibv_dereg_mr by different threads. > > If when ibv_dereg_mr invoke and the thread which invoked ibv_reg_mr has > > exited, get_

Re: [PATCH] IB/umem: use tgid instead of pid in ib_umem structure

2018-05-03 Thread Jason Gunthorpe
On Thu, May 03, 2018 at 10:04:34PM +0800, Lidong Chen wrote: > The userspace may invoke ibv_reg_mr and ibv_dereg_mr by different threads. > If when ibv_dereg_mr invoke and the thread which invoked ibv_reg_mr has > exited, get_pid_task will return NULL, ib_umem_release does not decrease > mm->pinned