summaryrefslogtreecommitdiff
path: root/fs/io-wq.c
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2020-07-15 12:46:51 +0300
committerJens Axboe <axboe@kernel.dk>2020-07-24 22:00:44 +0300
commit327d6d968b195cfc48ff97c49b56520aac922f65 (patch)
treeadc3e69cbb160bae75e766b5934d84f5d719f288 /fs/io-wq.c
parent1c2da9e8839d6437b43f2c805411d1a0cbd70165 (diff)
downloadlinux-327d6d968b195cfc48ff97c49b56520aac922f65.tar.xz
io_uring: alloc ->io in io_req_defer_prep()
Every call to io_req_defer_prep() is prepended with allocating ->io, just do that in the function. And while we're at it, mark error paths with unlikey and replace "if (ret < 0)" with "if (ret)". There is only one change in the observable behaviour, that's instead of killing the head request right away on error, it postpones it until the link is assembled, that looks more preferable. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/io-wq.c')
0 files changed, 0 insertions, 0 deletions