commit | 6cb78689fa94c80784faef76744746aee558c344 | [log] [tgz] |
---|---|---|
author | Pavel Begunkov <asml.silence@gmail.com> | Sun Feb 28 22:35:17 2021 +0000 |
committer | Jens Axboe <axboe@kernel.dk> | Sun Apr 11 17:41:58 2021 -0600 |
tree | bd0a745c5c4e6baa6c65bc44a6ae5c80aa36dca6 | |
parent | 2e052d443df15d71277f6b8509badae4310ebd92 [diff] |
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>