Blame SOURCES/bpftrace-0.13.1-Fix-mdflush.patch

bd8a9c
From 0585b27f6070c0d4016ae9b0d6e1a28261f2e2d2 Mon Sep 17 00:00:00 2001
acf1c8
From: Jerome Marchand <jmarchan@redhat.com>
acf1c8
Date: Fri, 15 Oct 2021 14:26:28 +0200
bd8a9c
Subject: [PATCH 2/6] Fix mdflush
acf1c8
acf1c8
Since kernel commit 309dca309fc ("block: store a block_device pointer
acf1c8
in struct bio") struct bio points again to a block_device and not to a
acf1c8
gendisk directly.
bd8a9c
bd8a9c
Signed-off-by: Jerome Marchand <jmarchan@redhat.com>
acf1c8
---
acf1c8
 tools/mdflush.bt | 2 +-
acf1c8
 1 file changed, 1 insertion(+), 1 deletion(-)
acf1c8
acf1c8
diff --git a/tools/mdflush.bt b/tools/mdflush.bt
acf1c8
index e767b81d..541abba1 100755
acf1c8
--- a/tools/mdflush.bt
acf1c8
+++ b/tools/mdflush.bt
acf1c8
@@ -26,5 +26,5 @@ kprobe:md_flush_request
acf1c8
 {
acf1c8
 	time("%H:%M:%S ");
acf1c8
 	printf("%-6d %-16s %s\n", pid, comm,
acf1c8
-	    ((struct bio *)arg1)->bi_disk->disk_name);
acf1c8
+	    ((struct bio *)arg1)->bi_bdev->bd_disk->disk_name);
acf1c8
 }
acf1c8
-- 
bd8a9c
2.35.3
acf1c8