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

From: Daniel Borkmann
Date: Mon Feb 11 2019 - 14:53:44 EST


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 <davem@xxxxxxxxxxxxx>
> Cc: Bjorn Topel <bjorn.topel@xxxxxxxxx>
> Cc: Magnus Karlsson <magnus.karlsson@xxxxxxxxx>
> CC: netdev@xxxxxxxxxxxxxxx
> Signed-off-by: Davidlohr Bueso <dbueso@xxxxxxx>

Applied, thanks!