]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: optimise iowq refcounting
authorPavel Begunkov <asml.silence@gmail.com>
Sun, 15 Aug 2021 09:40:18 +0000 (10:40 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 23 Aug 2021 19:10:37 +0000 (13:10 -0600)
commit8f8eb4945861f7f119b3d324967e0c2b863ad2b7
tree03f30a7dfe5404cf3844eaf7afe1a3a8a18fc9da
parente929b228e7abf8c72b85c113e9ace6ce5b5d0c9b
io_uring: optimise iowq refcounting

If a requests is forwarded into io-wq, there is a good chance it hasn't
been refcounted yet and we can save one req_ref_get() by setting the
refcount number to the right value directly.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/2d53f4449faaf73b4a4c5de667fc3c176d974860.1628981736.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c