Messages in this thread | | | Date | Wed, 30 Jul 2014 12:12:18 +0200 | From | Peter Zijlstra <> | Subject | Re: [RFC PATCH] mm: Add helpers for locked_vm |
| |
On Wed, Jul 30, 2014 at 07:28:13PM +1000, Alexey Kardashevskiy wrote: > This adds 2 helpers to change the locked_vm counter: > - try_increase_locked_vm - may fail if new locked_vm value will be greater > than the RLIMIT_MEMLOCK limit; > - decrease_locked_vm. > > These will be used by drivers capable of locking memory by userspace > request. For example, VFIO can use it to check if it can lock DMA memory > or PPC-KVM can use it to check if it can lock memory for TCE tables.
Urgh no.. have a look here:
lkml.kernel.org/r/20140526145605.016140154@infradead.org
Someone needs to go help with the IB stuff, I got properly lost in there. [unhandled content-type:application/pgp-signature] | |