summaryrefslogtreecommitdiff
path: root/rust
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2024-03-19 01:13:01 +0300
committerJens Axboe <axboe@kernel.dk>2024-04-15 17:10:25 +0300
commita9165b83c1937eeed1f0c731468216d6371d647f (patch)
treeb7444f11aca3a27908c5b1660344efe44cbc190e /rust
parentd80f940701302e84d1398ecb103083468b566a69 (diff)
downloadlinux-a9165b83c1937eeed1f0c731468216d6371d647f.tar.xz
io_uring/rw: always setup io_async_rw for read/write requests
read/write requests try to put everything on the stack, and then alloc and copy if a retry is needed. This necessitates a bunch of nasty code that deals with intermediate state. Get rid of this, and have the prep side setup everything that is needed upfront, which greatly simplifies the opcode handlers. This includes adding an alloc cache for io_async_rw, to make it cheap to handle. In terms of cost, this should be basically free and transparent. For the worst case of {READ,WRITE}_FIXED which didn't need it before, performance is unaffected in the normal peak workload that is being used to test that. Still runs at 122M IOPS. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'rust')
0 files changed, 0 insertions, 0 deletions