diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2022-10-16 21:30:48 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-10-16 17:07:12 -0600 |
commit | 38eddb2c75fb99b9cd78445094ca0e1bda08d102 (patch) | |
tree | 628f88e6f0449881091b76e5851a186b85864357 /io_uring/io_uring.c | |
parent | 9abf2313adc1ca1b6180c508c25f22f9395cc780 (diff) |
io_uring: remove FFS_SCM
THe lifetime of SCM'ed files is bound to ring_sock, which is destroyed
strictly after we're done with registered file tables. This means there
is no need for the FFS_SCM hack, which was not available on 32-bit builds
anyway.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/984226a1045adf42dc35d8bd7fb5a8bbfa472ce1.1665891182.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/io_uring.c')
-rw-r--r-- | io_uring/io_uring.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/io_uring/io_uring.c b/io_uring/io_uring.c index de08d9902b30..18aa39709fae 100644 --- a/io_uring/io_uring.c +++ b/io_uring/io_uring.c @@ -1587,8 +1587,6 @@ unsigned int io_file_get_flags(struct file *file) res |= FFS_ISREG; if (__io_file_supports_nowait(file, mode)) res |= FFS_NOWAIT; - if (io_file_need_scm(file)) - res |= FFS_SCM; return res; } |