[CRIU] [PATCH v2] dump: do not fail dump when robust_lists are disabled

Pavel Emelyanov xemul at parallels.com
Wed Jun 25 08:57:43 PDT 2014


On 06/25/2014 07:44 PM, Cyrill Gorcunov wrote:
> On Wed, Jun 25, 2014 at 08:35:31AM -0700, Filipe Brandenburger wrote:
>> Robust lists may be disabled, for example if the "futex_cmpxchg_enabled"
>> variable in the kernel is unset.
>>
>> Detect that case by checking that both "get_robust_list" and "set_robust_list"
>> syscalls return ENOSYS and do not make criu dump fail in that case, but simply
>> assume an empty list, which is consistent with the syscalls not being
>> available.
>>
>> Tested: Successfully ran the zdtm test suite on a kernel where the
>> "get_robust_list" and "set_robust_list" syscalls are disabled.
>>
>> Signed-off-by: Filipe Brandenburger <filbranden at google.com>
> Acked-by: Cyrill Gorcunov <gorcunov at openvz.org>
> 
> Thanks!
> .
> 
Applied, thanks everyone.


More information about the CRIU mailing list