]> git.baikalelectronics.ru Git - kernel.git/commit
posix-timers: Pass lockdep expression to RCU lists
authorAmol Grover <frextrite@gmail.com>
Sun, 16 Feb 2020 07:43:30 +0000 (13:13 +0530)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 17 Feb 2020 19:12:19 +0000 (20:12 +0100)
commitf953bdb30bedda90babe4e4c0d641085e83f9ebd
treea3bd43ae2ceb5e728ddce3def0bc9cf72780c65e
parent66332f88d2857f9de3f5e7bf6bbe5697dad96b01
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