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>
Sun, 4 Apr 2021 21:27:17 +0000 (15:27 -0600)
commit79cdedfb4a5172727d9ef91f9d584f8d8cce855b
tree164360f7374277d8720cedd484efa19af0caeedf
parentceeeba9558b5296bd709c3e6639c3f44ba0d5840
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