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)
commit61710e437f2807e26a3402543bdbb7217a9c8620
tree8173d238114e247df76e37a779f8f29ad2f637d8
parent807abcb0883439af5ead73f3308310453b97b624
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