]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: always allow drain/link/hardlink/async sqe flags
authorDaniele Albano <d.albano@gmail.com>
Sat, 18 Jul 2020 20:15:16 +0000 (14:15 -0600)
committerJens Axboe <axboe@kernel.dk>
Sat, 18 Jul 2020 20:15:16 +0000 (14:15 -0600)
commitbbe51942a6420a888f071dcc64e5e19302cd8475
tree8173d238114e247df76e37a779f8f29ad2f637d8
parentc575fcb63ef812100d3f76f82e0859d909cdd768
io_uring: always allow drain/link/hardlink/async sqe flags

We currently filter these for timeout_remove/async_cancel/files_update,
but we only should be filtering for fixed file and buffer select. This
also causes a second read of sqe->flags, which isn't needed.

Just check req->flags for the relevant bits. This then allows these
commands to be used in links, for example, like everything else.

Signed-off-by: Daniele Albano <d.albano@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c