From: Jens Axboe <axboe@kernel.dk>
To: linux-kernel@vger.kernel.org, ubizjak@gmail.com,
linux-block@vger.kernel.org
Subject: Re: [PATCH v2] block: Use try_cmpxchg in update_io_ticks
Date: Tue, 12 Jul 2022 14:40:00 -0600 [thread overview]
Message-ID: <165765840073.44296.3101525406707231315.b4-ty@kernel.dk> (raw)
In-Reply-To: <20220712152741.7324-1-ubizjak@gmail.com>
On Tue, 12 Jul 2022 17:27:41 +0200, Uros Bizjak wrote:
> Use try_cmpxchg instead of cmpxchg (*ptr, old, new) == old in
> update_io_ticks. x86 CMPXCHG instruction returns success in ZF flag,
> so this change saves a compare after cmpxchg (and related
> move instruction in front of cmpxchg).
>
> No functional change intended.
>
> [...]
Applied, thanks!
[1/1] block: Use try_cmpxchg in update_io_ticks
commit: 939f9dd040fe1063d884f8f0f89b037093fe2341
Best regards,
--
Jens Axboe
prev parent reply other threads:[~2022-07-12 20:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-12 15:27 Uros Bizjak
2022-07-12 20:40 ` Jens Axboe [this message]
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=165765840073.44296.3101525406707231315.b4-ty@kernel.dk \
--to=axboe@kernel.dk \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ubizjak@gmail.com \
/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
all inboxes | Powered by JetHome®