[CRIU] [PATCH RFC 0/3] Allow postpone fdinfo callbacks

Kirill Tkhai ktkhai at virtuozzo.com
Mon Aug 1 13:07:22 PDT 2016



On 01.08.2016 21:13, Andrew Vagin wrote:
> On Sun, Jul 31, 2016 at 03:43:12PM +0300, Kirill Tkhai wrote:
>> Allow callback to be postponed, if some file requests that
>> by returning FDO_REPEAT as retval.
>>
>> If so, callbacks for such files will be executed once again
>> after the callbacks for all other files in list have finished.
>>
>> Patches 1-2 are preparations, patch 3 implements the above.
> 
> Could you describe an use-case where you are going to use this
> functionality?

It will be need for unix sockets with promiscuous queue. Sockets,
which are need for restoring a queue, are sent to queue's owner.
These sockets should be closed after post_open() for all "normal
sockets" is complete.

>>
>> ---
>>
>> Kirill Tkhai (3):
>>       files: Make states callbacks return named error
>>       files: Make .post_open methods return named retvals
>>       files: Allow postponed fdinfo callbacks
>>
>>
>>  criu/autofs.c        |    6 +++---
>>  criu/eventpoll.c     |    4 ++--
>>  criu/files.c         |   41 +++++++++++++++++++++++++++++------------
>>  criu/include/files.h |    4 ++++
>>  criu/sk-inet.c       |    2 +-
>>  criu/sk-unix.c       |   12 ++++++------
>>  criu/tty.c           |    4 ++--
>>  7 files changed, 47 insertions(+), 26 deletions(-)
>>
>> --
>> Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
>> _______________________________________________
>> CRIU mailing list
>> CRIU at openvz.org
>> https://lists.openvz.org/mailman/listinfo/criu


More information about the CRIU mailing list