]> git.lttng.org Git - lttng-modules.git/commitdiff
Fix: block request field `rq_disk` removed in SLE15 SP5
authorKienan Stewart <kstewart@efficios.com>
Fri, 24 Jan 2025 20:06:13 +0000 (20:06 +0000)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 28 Jan 2025 18:59:12 +0000 (13:59 -0500)
See upstream SUSE commit:

    commit 7bee263be47b123a65778a2072a55d8a6575a9d1
    Author: Hannes Reinecke <hare@suse.de>
    Date:   Tue Nov 22 10:27:33 2022 +0100

        block: remove the ->rq_disk field in struct request
        (jsc#PED-1183).

        suse-commit: 0dce100255e42207b5535eafd10612bf96a4014e

Change-Id: Ibb2fb5ae2e40fb012e8545574554bb72ba17d5e6
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/instrumentation/events/block.h

index aa18909e3411fe44c25682500c17430d66269d3c..485a4e3af2603aaa52fa2291637537093384c498 100644 (file)
@@ -319,7 +319,8 @@ LTTNG_TRACEPOINT_EVENT_INSTANCE(block_rq_with_error, block_rq_abort,
 #endif
 
 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,17,0) \
-       || LTTNG_RHEL_KERNEL_RANGE(5,14,0,162,0,0, 5,15,0,0,0,0))
+       || LTTNG_RHEL_KERNEL_RANGE(5,14,0,162,0,0, 5,15,0,0,0,0) \
+       || LTTNG_SLE_VERSION_CODE >= LTTNG_SLE_VERSION(150500, 0, 0))
 /**
  * block_rq_requeue - place block IO request back on a queue
  * @rq: block IO operation request
@@ -345,7 +346,8 @@ LTTNG_TRACEPOINT_EVENT(block_rq_requeue,
 )
 #elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,11,0) \
        || LTTNG_KERNEL_RANGE(5,10,137, 5,11,0) \
-       || LTTNG_RHEL_KERNEL_RANGE(4,18,0,372,0,0, 4,19,0,0,0,0))
+       || LTTNG_RHEL_KERNEL_RANGE(4,18,0,372,0,0, 4,19,0,0,0,0) \
+       || LTTNG_SLE_VERSION_CODE >= LTTNG_SLE_VERSION(150500, 0, 0))
 /**
  * block_rq_requeue - place block IO request back on a queue
  * @rq: block IO operation request
@@ -416,7 +418,8 @@ LTTNG_TRACEPOINT_EVENT_INSTANCE(block_rq_with_error, block_rq_requeue,
  * additional work required to complete the request.
  */
 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,17,0) \
-       || LTTNG_RHEL_KERNEL_RANGE(5,14,0,162,0,0, 5,15,0,0,0,0))
+       || LTTNG_RHEL_KERNEL_RANGE(5,14,0,162,0,0, 5,15,0,0,0,0) \
+       || LTTNG_SLE_VERSION_CODE >= LTTNG_SLE_VERSION(150500, 0, 0))
 LTTNG_TRACEPOINT_EVENT(block_rq_complete,
 
        TP_PROTO(struct request *rq, blk_status_t error, unsigned int nr_bytes),
@@ -546,7 +549,8 @@ LTTNG_TRACEPOINT_EVENT_CODE(block_rq_complete,
 #endif
 
 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,17,0) \
-       || LTTNG_RHEL_KERNEL_RANGE(5,14,0,162,0,0, 5,15,0,0,0,0))
+       || LTTNG_RHEL_KERNEL_RANGE(5,14,0,162,0,0, 5,15,0,0,0,0) \
+       || LTTNG_SLE_VERSION_CODE >= LTTNG_SLE_VERSION(150500, 0, 0))
 LTTNG_TRACEPOINT_EVENT_CLASS(block_rq,
 
        TP_PROTO(struct request *rq),
@@ -1393,7 +1397,8 @@ LTTNG_TRACEPOINT_EVENT(block_bio_remap,
 #endif
 
 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,17,0) \
-       || LTTNG_RHEL_KERNEL_RANGE(5,14,0,162,0,0, 5,15,0,0,0,0))
+       || LTTNG_RHEL_KERNEL_RANGE(5,14,0,162,0,0, 5,15,0,0,0,0) \
+       || LTTNG_SLE_VERSION_CODE >= LTTNG_SLE_VERSION(150500, 0, 0))
 /**
  * block_rq_remap - map request for a block operation request
  * @rq: block IO operation request
This page took 0.032263 seconds and 4 git commands to generate.