Re: [PATCH 1/6] mm: make mm->pinned_vm an atomic64 counter

From: Christopher Lameter
Date: Mon Jan 21 2019 - 16:51:50 EST


On Mon, 21 Jan 2019, Davidlohr Bueso wrote
> Taking a sleeping lock to _only_ increment a variable is quite the
> overkill, and pretty much all users do this. Furthermore, some drivers
> (ie: infiniband and scif) that need pinned semantics can go to quite
> some trouble to actually delay via workqueue (un)accounting for pinned
> pages when not possible to acquire it.

Reviewed-by: Christoph Lameter <cl@xxxxxxxxx>