Re: [PATCH v2] xsk: share the mmap_sem for page pinning

2019-02-11 Thread Daniel Borkmann
On 02/11/2019 05:15 PM, Davidlohr Bueso wrote: > Holding mmap_sem exclusively for a gup() is an overkill. > Lets share the lock and replace the gup call for gup_longterm(), > as it is better suited for the lifetime of the pinning. > > Cc: David S. Miller > Cc: Bjorn Topel > Cc: Magnus Karlsson

Re: [PATCH v2] xsk: share the mmap_sem for page pinning

2019-02-11 Thread Björn Töpel
Den mån 11 feb. 2019 kl 17:15 skrev Davidlohr Bueso : > > Holding mmap_sem exclusively for a gup() is an overkill. > Lets share the lock and replace the gup call for gup_longterm(), > as it is better suited for the lifetime of the pinning. > Thanks for the cleanup! Acked-by: Björn Töpel > Cc: D

[PATCH v2] xsk: share the mmap_sem for page pinning

2019-02-11 Thread Davidlohr Bueso
Holding mmap_sem exclusively for a gup() is an overkill. Lets share the lock and replace the gup call for gup_longterm(), as it is better suited for the lifetime of the pinning. Cc: David S. Miller Cc: Bjorn Topel Cc: Magnus Karlsson CC: netdev@vger.kernel.org Signed-off-by: Davidlohr Bueso -