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@xxxxxxxxxxxxx Someone needs to go help with the IB stuff, I got properly lost in there.
Attachment:
pgpVzykilncIw.pgp
Description: PGP signature