Re: [PATCH 3/4] mm/hmm: HMM should have a callback before MM is destroyed

2018-03-20 Thread Jerome Glisse
On Tue, Mar 20, 2018 at 12:33:26PM +0100, Michal Hocko wrote: > On Thu 15-03-18 15:48:29, Andrew Morton wrote: > > On Thu, 15 Mar 2018 14:36:59 -0400 jgli...@redhat.com wrote: > > > > > From: Ralph Campbell > > > > > > The hmm_mirror_register() function registers a

Re: [PATCH 3/4] mm/hmm: HMM should have a callback before MM is destroyed

2018-03-20 Thread Jerome Glisse
On Tue, Mar 20, 2018 at 12:33:26PM +0100, Michal Hocko wrote: > On Thu 15-03-18 15:48:29, Andrew Morton wrote: > > On Thu, 15 Mar 2018 14:36:59 -0400 jgli...@redhat.com wrote: > > > > > From: Ralph Campbell > > > > > > The hmm_mirror_register() function registers a callback for when > > > the

Re: [PATCH 3/4] mm/hmm: HMM should have a callback before MM is destroyed

2018-03-20 Thread Michal Hocko
On Thu 15-03-18 15:48:29, Andrew Morton wrote: > On Thu, 15 Mar 2018 14:36:59 -0400 jgli...@redhat.com wrote: > > > From: Ralph Campbell > > > > The hmm_mirror_register() function registers a callback for when > > the CPU pagetable is modified. Normally, the device driver

Re: [PATCH 3/4] mm/hmm: HMM should have a callback before MM is destroyed

2018-03-20 Thread Michal Hocko
On Thu 15-03-18 15:48:29, Andrew Morton wrote: > On Thu, 15 Mar 2018 14:36:59 -0400 jgli...@redhat.com wrote: > > > From: Ralph Campbell > > > > The hmm_mirror_register() function registers a callback for when > > the CPU pagetable is modified. Normally, the device driver will > > call

Re: [PATCH 3/4] mm/hmm: HMM should have a callback before MM is destroyed

2018-03-15 Thread John Hubbard
On 03/15/2018 05:54 PM, Jerome Glisse wrote: > On Thu, Mar 15, 2018 at 03:48:29PM -0700, Andrew Morton wrote: >> On Thu, 15 Mar 2018 14:36:59 -0400 jgli...@redhat.com wrote: >> >>> From: Ralph Campbell >>> >>> The hmm_mirror_register() function registers a callback for when

Re: [PATCH 3/4] mm/hmm: HMM should have a callback before MM is destroyed

2018-03-15 Thread John Hubbard
On 03/15/2018 05:54 PM, Jerome Glisse wrote: > On Thu, Mar 15, 2018 at 03:48:29PM -0700, Andrew Morton wrote: >> On Thu, 15 Mar 2018 14:36:59 -0400 jgli...@redhat.com wrote: >> >>> From: Ralph Campbell >>> >>> The hmm_mirror_register() function registers a callback for when >>> the CPU pagetable

Re: [PATCH 3/4] mm/hmm: HMM should have a callback before MM is destroyed

2018-03-15 Thread Jerome Glisse
On Thu, Mar 15, 2018 at 03:48:29PM -0700, Andrew Morton wrote: > On Thu, 15 Mar 2018 14:36:59 -0400 jgli...@redhat.com wrote: > > > From: Ralph Campbell > > > > The hmm_mirror_register() function registers a callback for when > > the CPU pagetable is modified. Normally,

Re: [PATCH 3/4] mm/hmm: HMM should have a callback before MM is destroyed

2018-03-15 Thread Jerome Glisse
On Thu, Mar 15, 2018 at 03:48:29PM -0700, Andrew Morton wrote: > On Thu, 15 Mar 2018 14:36:59 -0400 jgli...@redhat.com wrote: > > > From: Ralph Campbell > > > > The hmm_mirror_register() function registers a callback for when > > the CPU pagetable is modified. Normally, the device driver will >

Re: [PATCH 3/4] mm/hmm: HMM should have a callback before MM is destroyed

2018-03-15 Thread Andrew Morton
On Thu, 15 Mar 2018 14:36:59 -0400 jgli...@redhat.com wrote: > From: Ralph Campbell > > The hmm_mirror_register() function registers a callback for when > the CPU pagetable is modified. Normally, the device driver will > call hmm_mirror_unregister() when the process using

Re: [PATCH 3/4] mm/hmm: HMM should have a callback before MM is destroyed

2018-03-15 Thread Andrew Morton
On Thu, 15 Mar 2018 14:36:59 -0400 jgli...@redhat.com wrote: > From: Ralph Campbell > > The hmm_mirror_register() function registers a callback for when > the CPU pagetable is modified. Normally, the device driver will > call hmm_mirror_unregister() when the process using the device is >

[PATCH 3/4] mm/hmm: HMM should have a callback before MM is destroyed

2018-03-15 Thread jglisse
From: Ralph Campbell The hmm_mirror_register() function registers a callback for when the CPU pagetable is modified. Normally, the device driver will call hmm_mirror_unregister() when the process using the device is finished. However, if the process exits uncleanly, the

[PATCH 3/4] mm/hmm: HMM should have a callback before MM is destroyed

2018-03-15 Thread jglisse
From: Ralph Campbell The hmm_mirror_register() function registers a callback for when the CPU pagetable is modified. Normally, the device driver will call hmm_mirror_unregister() when the process using the device is finished. However, if the process exits uncleanly, the struct_mm can be