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

acf1c8
From 7453a97005fda29f0b7be8f257736a19d7c13dbe Mon Sep 17 00:00:00 2001
acf1c8
From: Jerome Marchand <jmarchan@redhat.com>
acf1c8
Date: Fri, 15 Oct 2021 14:26:28 +0200
acf1c8
Subject: [PATCH] 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.
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
-- 
acf1c8
2.31.1
acf1c8