Thread (8 messages) 8 messages, 4 authors, 2025-10-30

Re: [PATCH v4 14/30] liveupdate: luo_session: Add ioctls for file preservation and state management

From: Pasha Tatashin <pasha.tatashin@soleen.com>
Date: 2025-10-29 21:18:14
Also in: linux-api, linux-fsdevel, linux-mm, lkml

On Wed, Oct 29, 2025 at 5:13 PM David Matlack [off-list ref] wrote:
On Wed, Oct 29, 2025 at 1:13 PM Pasha Tatashin
[off-list ref] wrote:
quoted
Simplified uAPI Proposal
The simplest uAPI would look like this:
IOCTLs on /dev/liveupdate (to create and retrieve session FDs):
LIVEUPDATE_IOCTL_CREATE_SESSION
LIVEUPDATE_IOCTL_RETRIEVE_SESSION
quoted
- If everything succeeds, the session becomes an empty "outgoing"
session. It can then be closed and discarded or reused for the next
live update by preserving new FDs into it.
I think it would be useful to cleanly separate incoming and outgoing
sessions. The only way to get an outgoing session is with
LIVEUPDATE_IOCTL_CREATE_SESSION. Incoming sessions can be retrieved
with LIVEUPDATE_IOCTL_RETRIEVE_SESSION.

It is fine and expected for incoming and outgoing sessions to have the
same name. But they are different sessions. This way, the kernel can
easily keep track of incoming and outgoing sessions separately, and
there is not need to "transition" and session from incoming to
outgoing.
Yes, good idea, I was thinking of recycling finished and empty
sessions, but it will only add complications.

Pasha
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help