OSDN Git Service

io_uring: add general async offload context
authorJens Axboe <axboe@kernel.dk>
Mon, 2 Dec 2019 17:33:15 +0000 (10:33 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 3 Dec 2019 01:49:33 +0000 (18:49 -0700)
commit1a6b74fc87024db59d41cd7346bd437f20fb3e2d
tree899c0e4efee1b3720e1e8a7089675904eba1e0d5
parent490547ca2df66b8413bce97cb651630f2c531487
io_uring: add general async offload context

Right now we just copy the sqe for async offload, but we want to store
more context across an async punt. In preparation for doing so, put the
sqe copy inside a structure that we can expand. With this pointer added,
we can get rid of REQ_F_FREE_SQE, as that is now indicated by whether
req->io is NULL or not.

No functional changes in this patch.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c