From: "tip-bot2 for Amol Grover" <tip-bot2@linutronix.de>
To: linux-tip-commits@vger.kernel.org
Cc: Amol Grover <frextrite@gmail.com>,
Thomas Gleixner <tglx@linutronix.de>, x86 <x86@kernel.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: [tip: timers/core] posix-timers: Pass lockdep expression to RCU lists
Date: Mon, 17 Feb 2020 15:40:48 -0000 [thread overview]
Message-ID: <158195404815.13786.1421372964572283195.tip-bot2@tip-bot2> (raw)
In-Reply-To: <20200216074330.GA14025@workstation-portable>
The following commit has been merged into the timers/core branch of tip:
Commit-ID: 9ea9c60fc23c35f865725ab390ca4308de919bb0
Gitweb: https://git.kernel.org/tip/9ea9c60fc23c35f865725ab390ca4308de919bb0
Author: Amol Grover <frextrite@gmail.com>
AuthorDate: Sun, 16 Feb 2020 13:13:30 +05:30
Committer: Thomas Gleixner <tglx@linutronix.de>
CommitterDate: Mon, 17 Feb 2020 16:39:28 +01:00
posix-timers: Pass lockdep expression to RCU lists
head is traversed using hlist_for_each_entry_rcu outside an RCU read-side
critical section but under the protection of hash_lock.
Hence, add corresponding lockdep expression to silence false-positive
lockdep warnings, and harden RCU lists.
[ tglx: Removed the macro and put the condition right where it's used ]
Signed-off-by: Amol Grover <frextrite@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20200216074330.GA14025@workstation-portable
---
kernel/time/posix-timers.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/kernel/time/posix-timers.c b/kernel/time/posix-timers.c
index ff0eb30..07709ac 100644
--- a/kernel/time/posix-timers.c
+++ b/kernel/time/posix-timers.c
@@ -121,7 +121,8 @@ static struct k_itimer *__posix_timers_find(struct hlist_head *head,
{
struct k_itimer *timer;
- hlist_for_each_entry_rcu(timer, head, t_hash) {
+ hlist_for_each_entry_rcu(timer, head, t_hash,
+ lockdep_is_held(&hash_lock)) {
if ((timer->it_signal == sig) && (timer->it_id == id))
return timer;
}
next prev parent reply other threads:[~2020-02-17 15:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-16 7:43 [PATCH RESEND] kernel: time: " Amol Grover
2020-02-17 15:40 ` tip-bot2 for Amol Grover [this message]
2020-02-17 19:18 ` [tip: timers/core] " tip-bot2 for Amol Grover
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=158195404815.13786.1421372964572283195.tip-bot2@tip-bot2 \
--to=tip-bot2@linutronix.de \
--cc=frextrite@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=tglx@linutronix.de \
--cc=x86@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
all inboxes | Powered by JetHome®