mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] seqlock,lockdep: Only check for preemption_disabled in non-rt
@ 2021-05-07 23:39 Davidlohr Bueso
  2021-05-07 23:47 ` [PATCH v2] " Davidlohr Bueso
  2021-05-12  9:47 ` [PATCH] " Ahmed S. Darwish
  0 siblings, 2 replies; 6+ messages in thread
From: Davidlohr Bueso @ 2021-05-07 23:39 UTC (permalink / raw)
  To: a.darwish
  Cc: bigeasy, peterz, tglx, shung-hsi.yu, dave, linux-kernel, Davidlohr Bueso

This silences the writer hitting this nonsensical warning on PREEMPT_RT.

Reported-by: Shung-Hsi Yu <shung-hsi.yu@suse.com>
Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
---
 include/linux/seqlock.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/linux/seqlock.h b/include/linux/seqlock.h
index f61e34fbaaea..c8f9253f1a2f 100644
--- a/include/linux/seqlock.h
+++ b/include/linux/seqlock.h
@@ -268,7 +268,9 @@ static inline bool __seqprop_preemptible(const seqcount_t *s)
 
 static inline void __seqprop_assert(const seqcount_t *s)
 {
+#ifndef CONFIG_PREEMPT_RT
 	lockdep_assert_preemption_disabled();
+#endif
 }
 
 #define __SEQ_RT	IS_ENABLED(CONFIG_PREEMPT_RT)
-- 
2.26.2


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-05-14  4:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-07 23:39 [PATCH] seqlock,lockdep: Only check for preemption_disabled in non-rt Davidlohr Bueso
2021-05-07 23:47 ` [PATCH v2] " Davidlohr Bueso
2021-05-12  8:44   ` Peter Zijlstra
2021-05-13 19:53     ` Davidlohr Bueso
2021-05-14  4:55       ` Ahmed S. Darwish
2021-05-12  9:47 ` [PATCH] " Ahmed S. Darwish

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®