[CRIU] [PATCH 4/5] timerfd: Implement c/r procedure

Pavel Emelyanov xemul at parallels.com
Thu Jun 26 14:24:30 PDT 2014


On 06/27/2014 01:11 AM, Cyrill Gorcunov wrote:
> On Fri, Jun 27, 2014 at 01:07:48AM +0400, Pavel Emelyanov wrote:
>>> +
>>> +		t = rst_mem_alloc(sizeof(*t), RM_PRIVATE);
>>
>> Why not in post_open callback of timerfd ops?
> 
> It must be sequential slab of restorer memory.

Make it the same as in tcp sockets: post_open_inet_sk->rst_tcp_socks_add.
It copies memory, but a) there are quite a few of timerfd-s and b) we'll
have more reasons to optimize this.

Thanks,
Pavel



More information about the CRIU mailing list