[patch] unprivileged mlock(2)

Andrey Zonov zont at FreeBSD.org
Tue Sep 4 17:48:35 UTC 2012


On 9/4/12 9:10 PM, Andriy Gapon wrote:
> on 30/08/2012 13:58 Andrey Zonov said the following:
>> [1] http://people.freebsd.org/~zont/vm_mmap.c.patch
> 
> This patch is correct.
> 

Thanks!

>> [2] http://people.freebsd.org/~zont/racct.patch
> 
> This patch looks correct.
> 

There is no need for this patch as I mentioned earlier.  racct_set()
doesn't add any additional locking here.

> And it also makes me wonder why kern/kern_racct.c is marked as standard while
> all(?) uses of racct API are placed under RACCT option.

Not all.  I think some code was not easy to put under RACCT.

> Ditto for kern_rctl.c/RCTL.
> I think that excluding these file if the options are not used would help to catch
> cases where the API is used unconditionally and it would also help to reduce
> kernel sizes a tiny bit too.
> 

-- 
Andrey Zonov

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 535 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20120904/ffaf080d/signature.pgp


More information about the freebsd-arch mailing list