[PATCH 1/9] mm: Allow the [page|pfn]_mkwrite callbacks to drop the mmap_sem v2

2019-04-24 Thread Thomas Hellstrom
Driver fault callbacks are allowed to drop the mmap_sem when expecting long hardware waits to avoid blocking other mm users. Allow the mkwrite callbacks to do the same by returning early on VM_FAULT_RETRY. In particular we want to be able to drop the mmap_sem when waiting for a reservation object

Re: [PATCH 1/9] mm: Allow the [page|pfn]_mkwrite callbacks to drop the mmap_sem

2019-04-18 Thread Souptick Joarder
On Wed, Apr 17, 2019 at 4:28 PM Thomas Hellstrom wrote: > > Hi, Souptick, > > On Sat, 2019-04-13 at 20:41 +0530, Souptick Joarder wrote: > > On Fri, Apr 12, 2019 at 9:34 PM Thomas Hellstrom < > > thellst...@vmware.com> wrote: > > > Driver fault callbacks are allowed to drop the mmap_sem when > >

Re: [PATCH 1/9] mm: Allow the [page|pfn]_mkwrite callbacks to drop the mmap_sem

2019-04-17 Thread Thomas Hellstrom
Hi, Souptick, On Sat, 2019-04-13 at 20:41 +0530, Souptick Joarder wrote: > On Fri, Apr 12, 2019 at 9:34 PM Thomas Hellstrom < > thellst...@vmware.com> wrote: > > Driver fault callbacks are allowed to drop the mmap_sem when > > expecting > > long hardware waits to avoid blocking other mm users.

Re: [PATCH 1/9] mm: Allow the [page|pfn]_mkwrite callbacks to drop the mmap_sem

2019-04-15 Thread Ralph Campbell
On 4/12/19 9:04 AM, Thomas Hellstrom wrote: Driver fault callbacks are allowed to drop the mmap_sem when expecting long hardware waits to avoid blocking other mm users. Allow the mkwrite callbacks to do the same by returning early on VM_FAULT_RETRY. In particular we want to be able to drop the

Re: [PATCH 1/9] mm: Allow the [page|pfn]_mkwrite callbacks to drop the mmap_sem

2019-04-15 Thread Souptick Joarder
On Fri, Apr 12, 2019 at 9:34 PM Thomas Hellstrom wrote: > > Driver fault callbacks are allowed to drop the mmap_sem when expecting > long hardware waits to avoid blocking other mm users. Allow the mkwrite > callbacks to do the same by returning early on VM_FAULT_RETRY. > > In particular we want

[PATCH 1/9] mm: Allow the [page|pfn]_mkwrite callbacks to drop the mmap_sem

2019-04-12 Thread Thomas Hellstrom
Driver fault callbacks are allowed to drop the mmap_sem when expecting long hardware waits to avoid blocking other mm users. Allow the mkwrite callbacks to do the same by returning early on VM_FAULT_RETRY. In particular we want to be able to drop the mmap_sem when waiting for a reservation object