io_uring: untie alloc_async_data and needs_async_data
authorPavel Begunkov <asml.silence@gmail.com>
Sun, 28 Feb 2021 22:35:17 +0000 (22:35 +0000)
committerJens Axboe <axboe@kernel.dk>
Wed, 10 Mar 2021 14:31:36 +0000 (07:31 -0700)
commitb18983ee8bc2cee7f217ff93755c497f75c590f4
treea4e4aee2633fdfbb329c588f75bfac06e3a18668
parent84dc29633015e9612d85d99d9521c9a8319bdc9e
io_uring: untie alloc_async_data and needs_async_data

All opcode handlers pretty well know whether they need async data or
not, and can skip testing for needs_async_data. The exception is rw
the generic path, but those test the flag by hand anyway. So, check the
flag and make io_alloc_async_data() allocating unconditionally.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c