]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/meta-ti-glsdk.git/blob - recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.10/0042-osd_uld-Bump-MAX_OSD_DEVICES-from-64-to-1-048-576.patch
linux-ti335x-psp 3.2: update to v3.2.11
[glsdk/meta-ti-glsdk.git] / recipes-kernel / linux / linux-ti33x-psp-3.2 / 3.2.10 / 0042-osd_uld-Bump-MAX_OSD_DEVICES-from-64-to-1-048-576.patch
1 From 7f3be420ce32352ea342f204edc4d3eda0822fa5 Mon Sep 17 00:00:00 2001
2 From: Boaz Harrosh <bharrosh@panasas.com>
3 Date: Wed, 25 Jan 2012 21:42:58 +0200
4 Subject: [PATCH 42/95] osd_uld: Bump MAX_OSD_DEVICES from 64 to 1,048,576
6 commit 41f8ad76362e7aefe3a03949c43e23102dae6e0b upstream.
8 It used to be that minors where 8 bit. But now they
9 are actually 20 bit. So the fix is simplicity itself.
11 I've tested with 300 devices and all user-mode utils
12 work just fine. I have also mechanically added 10,000
13 to the ida (so devices are /dev/osd10000, /dev/osd10001 ...)
14 and was able to mkfs an exofs filesystem and access osds
15 from user-mode.
17 All the open-osd user-mode code uses the same library
18 to access devices through their symbolic names in
19 /dev/osdX so I'd say it's pretty safe. (Well tested)
21 This patch is very important because some of the systems
22 that will be deploying the 3.2 pnfs-objects code are larger
23 than 64 OSDs and will stop to work properly when reaching
24 that number.
26 Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
27 Signed-off-by: James Bottomley <JBottomley@Parallels.com>
28 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
29 ---
30  drivers/scsi/osd/osd_uld.c |    4 ++--
31  1 file changed, 2 insertions(+), 2 deletions(-)
33 diff --git a/drivers/scsi/osd/osd_uld.c b/drivers/scsi/osd/osd_uld.c
34 index b31a8e3..d4ed9eb 100644
35 --- a/drivers/scsi/osd/osd_uld.c
36 +++ b/drivers/scsi/osd/osd_uld.c
37 @@ -69,10 +69,10 @@
38  #ifndef SCSI_OSD_MAJOR
39  #  define SCSI_OSD_MAJOR 260
40  #endif
41 -#define SCSI_OSD_MAX_MINOR 64
42 +#define SCSI_OSD_MAX_MINOR MINORMASK
43  
44  static const char osd_name[] = "osd";
45 -static const char *osd_version_string = "open-osd 0.2.0";
46 +static const char *osd_version_string = "open-osd 0.2.1";
47  
48  MODULE_AUTHOR("Boaz Harrosh <bharrosh@panasas.com>");
49  MODULE_DESCRIPTION("open-osd Upper-Layer-Driver osd.ko");
50 -- 
51 1.7.9.4