From: Olivier Langlois <olivier@trillion01.com>
To: Jens Axboe <axboe@kernel.dk>,Pavel Begunkov
<asml.silence@gmail.com>,io-uring@vger.kernel.org
Subject: [PATCH 0/2] io_uring: minor sqpoll code refactoring
Date: Tue, 30 Jul 2024 17:19:30 -0400 [thread overview]
Message-ID: <cover.1722374370.git.olivier@trillion01.com> (raw)
the first patch is minor micro-optimization that attempts to avoid a memory
access if by testing a variable to is very likely already in a register
the second patch is also minor but this is much more serious. Without it,
it is possible to have a ring that is configured to enable NAPI busy polling
to NOT perform busy polling in specific conditions.
Olivier Langlois (2):
io_uring: micro optimization of __io_sq_thread() condition
io_uring: do the sqpoll napi busy poll outside the submission block
io_uring/napi.h | 9 +++++++++
io_uring/sqpoll.c | 9 +++++----
2 files changed, 14 insertions(+), 4 deletions(-)
--
2.45.2
next reply other threads:[~2024-07-30 22:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-30 21:19 Olivier Langlois [this message]
2024-07-30 20:56 ` [PATCH 1/2] io_uring: micro optimization of __io_sq_thread() condition Olivier Langlois
2024-08-02 11:17 ` Pavel Begunkov
2024-07-30 21:10 ` [PATCH 2/2] io_uring: do the sqpoll napi busy poll outside the submission block Olivier Langlois
2024-08-02 11:14 ` Pavel Begunkov
2024-08-02 14:22 ` Olivier Langlois
2024-08-02 15:30 ` Pavel Begunkov
2024-08-02 13:11 ` (subset) [PATCH 0/2] io_uring: minor sqpoll code refactoring Jens Axboe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1722374370.git.olivier@trillion01.com \
--to=olivier@trillion01.com \
--cc=asml.silence@gmail.com \
--cc=axboe@kernel.dk \
--cc=io-uring@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox