File sle_enable-fix-sync-livelock-due-to-b_dirty_time-processing.patch of Package lttng-modules

From: Tony Jones <tonyj@suse.de>
Subject: enable Fix sync livelock due to b_dirty_time processing
Date: Thu Feb 25 10:40:37 PM CET 2021
References: email from build team indicating staging build error

Jan's patch has been backported to SLE15-SP3,  so enable matching lttng
change below (in 12.3)

commit 87b2affc3eb06f3fb2d0923f18af37713eb6814b
Author: Michael Jeanson <mjeanson@efficios.com>
Date:   Mon Aug 31 14:16:01 2020 -0400

    fix: writeback: Fix sync livelock due to b_dirty_time processing (v5.9)
    
    See upstream commit:
    
      commit f9cae926f35e8230330f28c7b743ad088611a8de
      Author: Jan Kara <jack@suse.cz>
      Date:   Fri May 29 16:08:58 2020 +0200


--- a/instrumentation/events/lttng-module/writeback.h	2021-02-25 22:36:15.356642058 +0100
+++ b/instrumentation/events/lttng-module/writeback.h	2021-02-25 22:37:17.113962181 +0100
@@ -46,7 +46,7 @@
 
 #endif
 
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,9,0))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,9,0) || defined (CONFIG_SUSE_KERNEL))
 #define show_inode_state(state)					\
 	__print_flags(state, "|",				\
 		{I_DIRTY_SYNC,		"I_DIRTY_SYNC"},	\
@@ -384,7 +384,7 @@
 #endif
 LTTNG_TRACEPOINT_EVENT_WBC_INSTANCE(wbc_writepage, writeback_wbc_writepage)
 
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,9,0) || \
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,9,0) || defined (CONFIG_SUSE_KERNEL) || \
 	LTTNG_KERNEL_RANGE(5,8,6, 5,9,0) || \
 	LTTNG_KERNEL_RANGE(5,4,62, 5,5,0) || \
 	LTTNG_KERNEL_RANGE(4,19,143, 4,20,0) || \
openSUSE Build Service is sponsored by