-
I've come across the linked openat_direct + op with fixed index in file table, which avoids a round-trip with userspace just to schedule the next op based on the returned fd... Is there any way of telling the ring to keep the cqe->res around and use that for next op? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
If you want to use a known fd between two SQEs, then you cannot use the allocator for direct descriptors. That ends up being basically the same as a normal file descriptor, in that you'd need to know what fd is being picked. The only sane way to do that is to let the app manage and pick the descriptor, rather than let the kernel allocate it. There's currently no support for passing information between SQEs, or from CQE to SQE. Something like the bpf for io_uring work would be needed for that. |
Beta Was this translation helpful? Give feedback.
If you want to use a known fd between two SQEs, then you cannot use the allocator for direct descriptors. That ends up being basically the same as a normal file descriptor, in that you'd need to know what fd is being picked. The only sane way to do that is to let the app manage and pick the descriptor, rather than let the kernel allocate it.
There's currently no support for passing information between SQEs, or from CQE to SQE. Something like the bpf for io_uring work would be needed for that.