[CRIU] [PATCH] pipes: Restore pipe size via userns call

Pavel Emelyanov xemul at virtuozzo.com
Tue Feb 28 07:18:02 PST 2017


On 02/28/2017 10:43 AM, Cyrill Gorcunov wrote:
> On Mon, Feb 6, 2017 at 1:39 PM, Cyrill Gorcunov <gorcunov at virtuozzo.com> wrote:
>> On Mon, Feb 06, 2017 at 01:22:39PM +0300, Pavel Emelyanov wrote:
>>>>
>>>>  static struct pipe_data_rst *pd_hash_pipes[PIPE_DATA_HASH_SIZE];
>>>>
>>>> +typedef struct {
>>>> +   unsigned int    pipe_id;
>>>> +   size_t          size;
>>>> +} pipe_set_size_arg_t;
>>>> +
>>>> +static int pipe_set_size(void *arg, int fd, int pid)
>>>> +{
>>>> +   pipe_set_size_arg_t *p = arg;
>>>> +
>>>> +   pr_info("Restoring size %#zx for %#x\n", p->size, p->pipe_id);
>>>
>>> You don't need pipe_id here, just print it before calling userns_call and
>>> remove this ugly pipe_set_size_arg_t.
>>
>> It is *ASYNC* call, thus it's printed when it executes, which is a
>> way more suitable for log I think, no?
> 
> Pavel, have I convince you? 

Nope :(

> If so please ack so we merge it upstream.

I'll leave it up to Andrey.

-- Pavel



More information about the CRIU mailing list