lkml.org 
[lkml]   [2021]   [May]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] seqlock,lockdep: Only check for preemption_disabled in non-rt
Date
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
\
 
 \ /
  Last update: 2021-05-08 01:41    [W:0.070 / U:0.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site