From: Zqiang <qiang1.zhang@intel.com>
To: paulmck@kernel.org, frederic@kernel.org
Cc: linux-kernel@vger.kernel.org, qiang1.zhang@intel.com
Subject: [PATCH] rcu: When rcuog kthreads is in polling mode, wakeup waitqueue is not requried
Date: Fri, 28 Jan 2022 11:13:46 +0800 [thread overview]
Message-ID: <20220128031346.157961-1-qiang1.zhang@intel.com> (raw)
When grace period cleanup, the rcuog kthreads that waiting in sq
waitqueue will be awakened, however if the 'rcu_nocb_poll' is set,
the sq waitqueue always empty, so if 'rcu_nocb_poll' is set, return
directly.
Signed-off-by: Zqiang <qiang1.zhang@intel.com>
---
kernel/rcu/tree_nocb.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/kernel/rcu/tree_nocb.h b/kernel/rcu/tree_nocb.h
index 636d0546a4e9..9e106c590e56 100644
--- a/kernel/rcu/tree_nocb.h
+++ b/kernel/rcu/tree_nocb.h
@@ -201,6 +201,8 @@ static void rcu_lockdep_assert_cblist_protected(struct rcu_data *rdp)
*/
static void rcu_nocb_gp_cleanup(struct swait_queue_head *sq)
{
+ if (rcu_nocb_poll)
+ return;
swake_up_all(sq);
}
--
2.25.1
next reply other threads:[~2022-01-28 3:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-28 3:13 Zqiang [this message]
2022-01-29 5:17 ` [PATCH] rcu: When rcuog kthreads is in polling mode, wakeup waitqueue is not requried Paul E. McKenney
2022-01-29 5:55 ` Zhang, Qiang1
2022-01-29 16:37 ` Paul E. McKenney
2022-01-30 2:18 ` Zhang, Qiang1
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=20220128031346.157961-1-qiang1.zhang@intel.com \
--to=qiang1.zhang@intel.com \
--cc=frederic@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=paulmck@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;
as well as URLs for NNTP newsgroup(s).