Re: [PATCH/RFC] - support inheritance of mlocks across fork/exec

KOSAKI Motohiro
2008-11-25T04:05:48Z

> PATCH/RFC - support inheritance of mlocks across fork/exec
>
> Against; 2.6.28-rc5-mmotm-081121
>
> Add support for mlockall(MCL_INHERIT|MCL_RECURSIVE):
> MCL_CURRENT|MCL_INHERIT - inherit memory locks across fork()
> MCL_FUTURE|MCL_INHERIT - inherit "MCL_FUTURE" semantics across
> fork() and exec().
> MCL_RECURSIVE - inherit across future generations.
>
> In support of a "lock prefix command"--e.g., mlock <cmd> <args> ...

I don't review yet, but I believe this patch is useful for mlock related kernel test.

I plan to review it tommorow.
thanks.