]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: batch account ->req_issue and task struct references
authorJens Axboe <axboe@kernel.dk>
Wed, 7 Oct 2020 18:48:53 +0000 (12:48 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 7 Oct 2020 18:55:42 +0000 (12:55 -0600)
commitdb11c8bb14c19d1e3e2f814402588552d2330409
tree3953847c6a16afc19872e9b3f94be0a78a3e164a
parent7a8f9bd3ecb741b5aa2d09f6937056d9ca9ab07a
io_uring: batch account ->req_issue and task struct references

Identical to how we handle the ctx reference counts, increase by the
batch we're expecting to submit, and handle any slow path residual,
if any. The request alloc-and-issue path is very hot, and this makes
a noticeable difference by avoiding an two atomic incs for each
individual request.

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