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

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