From: David Vernet <void@manifault.com>
To: "Paul E. McKenney" <paulmck@kernel.org>
Cc: frederic@kernel.org, jiangshanlai@gmail.com,
joel@joelfernandes.org, josh@joshtriplett.org,
linux-kernel@vger.kernel.org, mathieu.desnoyers@efficios.com,
quic_neeraju@quicinc.com, rcu@vger.kernel.org,
rostedt@goodmis.org
Subject: Re: [PATCH] rcu_sync: Fix comment to properly reflect rcu_sync_exit() behavior
Date: Tue, 29 Mar 2022 15:36:13 -0400 [thread overview]
Message-ID: <20220329193613.2a3g3bkxadocirgm@user-VirtualBox> (raw)
In-Reply-To: <20220329232256.GE4285@paulmck-ThinkPad-P17-Gen-1>
On Tue, Mar 29, 2022 at 04:22:56PM -0700, Paul E. McKenney wrote:
> As usual, I could not resist the urge to wordsmith. Please take a look
> at the following to see if I messed something up.
>
> Thanx, Paul
>
> ------------------------------------------------------------------------
>
> commit b89e06a95c05009bcf31949814c42bc420f414a6
> Author: David Vernet <void@manifault.com>
> Date: Tue Mar 29 15:26:13 2022 -0700
>
> rcu_sync: Fix comment to properly reflect rcu_sync_exit() behavior
>
> The rcu_sync_enter() function is used by updaters to force RCU readers
> (e.g. percpu-rwsem) to use their slow paths during an update. This is
> accomplished by setting the ->gp_state of the rcu_sync structure to
> GP_ENTER. In the case of percpu-rwsem, the readers' slow path waits on
> a semaphore instead of just incrementing a reader count. Each updater
> invokes the rcu_sync_exit() function to signal to readers that they
> may again take their fastpaths. The rcu_sync_exit() function sets the
> ->gp_state of the rcu_sync structure to GP_EXIT, and if all goes well,
> after a grace period the ->gp_state reverts back to GP_IDLE.
>
> Unfortunately, the rcu_sync_enter() function currently has a comment
> incorrectly stating that rcu_sync_exit() (by an updater) will re-enable
> reader "slowpaths". This patch changes the comment to state that this
> function re-enables reader fastpaths.
>
> Signed-off-by: David Vernet <void@manifault.com>
> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
The word smithing looks like a good improvement to me!
Thanks,
David
prev parent reply other threads:[~2022-03-30 0:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-29 22:26 [PATCH] rcu_sync: Fix comment to properly reflect rcu_sync_exit() behavior David Vernet
2022-03-29 23:22 ` Paul E. McKenney
2022-03-29 19:36 ` David Vernet [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=20220329193613.2a3g3bkxadocirgm@user-VirtualBox \
--to=void@manifault.com \
--cc=frederic@kernel.org \
--cc=jiangshanlai@gmail.com \
--cc=joel@joelfernandes.org \
--cc=josh@joshtriplett.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mathieu.desnoyers@efficios.com \
--cc=paulmck@kernel.org \
--cc=quic_neeraju@quicinc.com \
--cc=rcu@vger.kernel.org \
--cc=rostedt@goodmis.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