]> 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)
commit521e26b9454c9a38bf23056df3ca01b281d21aba
tree8173d238114e247df76e37a779f8f29ad2f637d8
parent8c3106a96b497f55231c8296b217ce45b943929e
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