diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2023-03-20 16:05:02 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-03-22 15:34:06 +0300 |
commit | 36773a78b0de0223cb5863881db34f51f5ef9998 (patch) | |
tree | af75576cadd19bfa3a316d42d967a3429c8e52b9 /kernel/events | |
parent | ba4045cc7d0c2c0597ba32a2d65fed9dfffb6ef1 (diff) | |
download | linux-36773a78b0de0223cb5863881db34f51f5ef9998.tar.xz |
io_uring/msg_ring: let target know allocated index
commit 5da28edd7bd5518f97175ecea77615bb729a7a28 upstream.
msg_ring requests transferring files support auto index selection via
IORING_FILE_INDEX_ALLOC, however they don't return the selected index
to the target ring and there is no other good way for the userspace to
know where is the receieved file.
Return the index for allocated slots and 0 otherwise, which is
consistent with other fixed file installing requests.
Cc: stable@vger.kernel.org # v6.0+
Fixes: e6130eba8a848 ("io_uring: add support for passing fixed file descriptors")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://github.com/axboe/liburing/issues/809
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/events')
0 files changed, 0 insertions, 0 deletions