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>
Mon, 22 Mar 2021 13:42:45 +0000 (07:42 -0600)
commit153a153fc3811771f163a633dfcd3ec31b64edb2
tree754a5db16102306dd1287168f168987c1e2fc676
parent05287ed6e02d5746f91a9dc8e6767476f5e10077
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