]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
io_uring: add missing item types for splice request
authorBing-Jhong Billy Jheng <billy@starlabs.sg>
Thu, 15 Dec 2022 14:43:56 +0000 (06:43 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Dec 2022 11:27:31 +0000 (12:27 +0100)
Splice is like read/write and should grab current->nsproxy, denoted by
IO_WQ_WORK_FILES as it refers to current->files as well

Signed-off-by: Bing-Jhong Billy Jheng <billy@starlabs.sg>
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/io_uring.c

index c5c22b067cd81a034b74dea15a5341cbe9be76f8..84758e512a04570ca059c8871500d41005f3568a 100644 (file)
@@ -936,7 +936,7 @@ static const struct io_op_def io_op_defs[] = {
                .needs_file             = 1,
                .hash_reg_file          = 1,
                .unbound_nonreg_file    = 1,
-               .work_flags             = IO_WQ_WORK_BLKCG,
+               .work_flags             = IO_WQ_WORK_BLKCG | IO_WQ_WORK_FILES,
        },
        [IORING_OP_PROVIDE_BUFFERS] = {},
        [IORING_OP_REMOVE_BUFFERS] = {},