Re: [PATCH] cxl: Fix possible deadlock when processing page faults from cxllib

2018-04-04 Thread Frederic Barrat
Le 03/04/2018 à 17:31, Aneesh Kumar K.V a écrit : On 04/03/2018 08:10 PM, Aneesh Kumar K.V wrote: On 04/03/2018 03:13 PM, Frederic Barrat wrote: cxllib_handle_fault() is called by an external driver when it needs to have the host process page faults for a buffer which may cover several pages.

Re: [PATCH] cxl: Fix possible deadlock when processing page faults from cxllib

2018-04-03 Thread Frederic Barrat
Le 03/04/2018 à 16:40, Aneesh Kumar K.V a écrit : On 04/03/2018 03:13 PM, Frederic Barrat wrote: cxllib_handle_fault() is called by an external driver when it needs to have the host process page faults for a buffer which may cover several pages. Currently the function holds the mm->mmap_sem se

Re: [PATCH] cxl: Fix possible deadlock when processing page faults from cxllib

2018-04-03 Thread Aneesh Kumar K.V
On 04/03/2018 08:10 PM, Aneesh Kumar K.V wrote: On 04/03/2018 03:13 PM, Frederic Barrat wrote: cxllib_handle_fault() is called by an external driver when it needs to have the host process page faults for a buffer which may cover several pages. Currently the function holds the mm->mmap_sem semaph

Re: [PATCH] cxl: Fix possible deadlock when processing page faults from cxllib

2018-04-03 Thread Aneesh Kumar K.V
On 04/03/2018 03:13 PM, Frederic Barrat wrote: cxllib_handle_fault() is called by an external driver when it needs to have the host process page faults for a buffer which may cover several pages. Currently the function holds the mm->mmap_sem semaphore with read access while iterating over the buf

Re: [PATCH] cxl: Fix possible deadlock when processing page faults from cxllib

2018-04-03 Thread Vaibhav Jain
Frederic Barrat writes: > cxllib_handle_fault() is called by an external driver when it needs to > have the host process page faults for a buffer which may cover several > pages. Currently the function holds the mm->mmap_sem semaphore with > read access while iterating over the buffer, since it c

Re: [PATCH] cxl: Fix possible deadlock when processing page faults from cxllib

2018-04-03 Thread Laurent Dufour
On 03/04/2018 11:43, Frederic Barrat wrote: > cxllib_handle_fault() is called by an external driver when it needs to > have the host process page faults for a buffer which may cover several > pages. Currently the function holds the mm->mmap_sem semaphore with > read access while iterating over th