/usr/src/kernel-patches/lustre/patches/blkdev_tunables-2.6-sles11.patch is in linux-patch-lustre 1.8.5+dfsg-3ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | Index: linux-2.6.27.29-0.1/include/linux/blkdev.h
===================================================================
--- linux-2.6.27.29-0.1.orig/include/linux/blkdev.h
+++ linux-2.6.27.29-0.1/include/linux/blkdev.h
@@ -901,10 +901,10 @@ extern int blk_verify_command(struct blk
unsigned char *cmd, int has_write_perm);
extern void blk_set_cmd_filter_defaults(struct blk_cmd_filter *filter);
-#define MAX_PHYS_SEGMENTS 128
-#define MAX_HW_SEGMENTS 128
+#define MAX_PHYS_SEGMENTS 256
+#define MAX_HW_SEGMENTS 256
#define SAFE_MAX_SECTORS 255
-#define BLK_DEF_MAX_SECTORS 1024
+#define BLK_DEF_MAX_SECTORS 2048
#define MAX_SEGMENT_SIZE 65536
Index: linux-2.6.27.29-0.1/include/scsi/scsi.h
===================================================================
--- linux-2.6.27.29-0.1.orig/include/scsi/scsi.h
+++ linux-2.6.27.29-0.1/include/scsi/scsi.h
@@ -18,7 +18,7 @@
* to SG_MAX_SINGLE_ALLOC to pack correctly at the highest order. The
* minimum value is 32
*/
-#define SCSI_MAX_SG_SEGMENTS 128
+#define SCSI_MAX_SG_SEGMENTS 256
/*
* Like SCSI_MAX_SG_SEGMENTS, but for archs that have sg chaining. This limit
|