diff options
| author | Bing-Jhong Billy Jheng <billy@starlabs.sg> | 2022-12-15 06:43:56 -0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-12-19 12:27:31 +0100 |
| commit | 75454b4bbfc7e6a4dd8338556f36ea9107ddf61a (patch) | |
| tree | dcacfc61420dec7d226f069709c8eaabfe2ee92b | |
| parent | 17f386e6b7695afdb10474431dfd754c92feaedd (diff) | |
| download | linux-75454b4bbfc7e6a4dd8338556f36ea9107ddf61a.tar.gz | |
io_uring: add missing item types for splice request
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>
| -rw-r--r-- | fs/io_uring.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c index c5c22b067cd81..84758e512a045 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -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] = {}, |
