summaryrefslogtreecommitdiff
path: root/include/linux/seqlock_api.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2024-03-15 16:36:23 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-05-30 09:49:52 +0200
commit29aa8e4dff9b3e68af891c17f436ed56dab39a4d (patch)
tree444dc24a23c441f68cb8110cbd63318147a191c3 /include/linux/seqlock_api.h
parenta460592e430cab2cffc9b0fbcaeed2b136133585 (diff)
io_uring/net: ensure async prep handlers always initialize ->done_io
[ Upstream commit f3a640cca951ef9715597e68f5363afc0f452a88 ] If we get a request with IOSQE_ASYNC set, then we first run the prep async handlers. But if we then fail setting it up and want to post a CQE with -EINVAL, we use ->done_io. This was previously guarded with REQ_F_PARTIAL_IO, and the normal setup handlers do set it up before any potential errors, but we need to cover the async setup too. Fixes: 9817ad85899f ("io_uring/net: remove dependency on REQ_F_PARTIAL_IO for sr->done_io") Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux/seqlock_api.h')
0 files changed, 0 insertions, 0 deletions