Blame SOURCES/0042-tests-Set-optimal-blocks-to-64-for-scsi_debug-device.patch

aeed84
From f648310fbc24186395e1864a48571982e1588435 Mon Sep 17 00:00:00 2001
aeed84
From: "Brian C. Lane" <bcl@redhat.com>
aeed84
Date: Tue, 23 Aug 2016 08:55:18 -0700
aeed84
Subject: [PATCH] tests: Set optimal blocks to 64 for scsi_debug devices
aeed84
 (#1359682)
aeed84
aeed84
The Linux kernel 4.5 changed the optimal blocks count from 64 to 1024
aeed84
This causes tests using scsi_debug devices to fail because of alignment
aeed84
issues. Set the opt_blks to 64 so that we have consistent behavior
aeed84
across kernels.
aeed84
aeed84
Resolves: rhbz#1359682
aeed84
---
aeed84
 tests/t-local.sh | 2 +-
aeed84
 1 file changed, 1 insertion(+), 1 deletion(-)
aeed84
aeed84
diff --git a/tests/t-local.sh b/tests/t-local.sh
aeed84
index 5305865..93ee0f7 100644
aeed84
--- a/tests/t-local.sh
aeed84
+++ b/tests/t-local.sh
aeed84
@@ -98,7 +98,7 @@ scsi_debug_setup_()
aeed84
   # It is not trivial to determine the name of the device we're creating.
aeed84
   # Record the names of all /sys/block/sd* devices *before* probing:
aeed84
   touch stamp
aeed84
-  modprobe scsi_debug "$@" || { rm -f stamp; return 1; }
aeed84
+  modprobe scsi_debug opt_blks=64 "$@" || { rm -f stamp; return 1; }
aeed84
   scsi_debug_modprobe_succeeded_=1
aeed84
   test "$VERBOSE" = yes \
aeed84
     && warn_ $ME_ modprobe scsi_debug succeeded
aeed84
-- 
aeed84
2.7.4
aeed84