Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scsi: Remove CONFIG_SCSI_MULTI_LUN

Obsolete; either use 'max_lun' if the host supports only a
limited number of LUNs or BLIST_NOLUN if the target has
problems addressing more than one LUN.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Ewan Milne <emilne@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>

authored by

Hannes Reinecke and committed by
Christoph Hellwig
c309b351 cc833acb

+2 -35
-2
Documentation/scsi/tmscsim.txt
··· 317 317 4 0x10 16 Immediate return on BIOS seek command. (Not used) 318 318 (*)5 0x20 32 Check for LUNs >= 1. 319 319 320 - The default for LUN Check depends on CONFIG_SCSI_MULTI_LUN. 321 - 322 320 * TaggedCmnds is a number indicating the maximum number of Tagged Commands. 323 321 It is the binary logarithm - 1 of the actual number. Max is 4 (32). 324 322 Value Number of Tagged Commands
-14
drivers/scsi/Kconfig
··· 197 197 it has an enclosure device. Selecting this option will just allow 198 198 certain enclosure conditions to be reported and is not required. 199 199 200 - config SCSI_MULTI_LUN 201 - bool "Probe all LUNs on each SCSI device" 202 - depends on SCSI 203 - help 204 - Some devices support more than one LUN (Logical Unit Number) in order 205 - to allow access to several media, e.g. CD jukebox, USB card reader, 206 - mobile phone in mass storage mode. This option forces the kernel to 207 - probe for all LUNs by default. This setting can be overridden by 208 - max_luns boot/module parameter. Note that this option does not affect 209 - devices conforming to SCSI-3 or higher as they can explicitly report 210 - their number of LUNs. It is safe to say Y here unless you have one of 211 - those rare devices which reacts in an unexpected way when probed for 212 - multiple LUNs. 213 - 214 200 config SCSI_CONSTANTS 215 201 bool "Verbose SCSI error reporting (kernel size +=12K)" 216 202 depends on SCSI
+1 -8
drivers/scsi/dc395x.c
··· 519 519 CFG_PARAM_UNSET, 520 520 0, 521 521 0x2f, 522 - #ifdef CONFIG_SCSI_MULTI_LUN 523 - NAC_SCANLUN | 524 - #endif 522 + NAC_SCANLUN | 525 523 NAC_GT2DRIVES | NAC_GREATER_1G | NAC_POWERON_SCSI_RESET 526 524 /*| NAC_ACTIVE_NEG*/, 527 525 NAC_GT2DRIVES | NAC_GREATER_1G | NAC_POWERON_SCSI_RESET | 0x08 ··· 4432 4434 if (host->max_id - 1 == eeprom->scsi_id) 4433 4435 host->max_id--; 4434 4436 4435 - #ifdef CONFIG_SCSI_MULTI_LUN 4436 4437 if (eeprom->channel_cfg & NAC_SCANLUN) 4437 4438 host->max_lun = 8; 4438 4439 else 4439 4440 host->max_lun = 1; 4440 - #else 4441 - host->max_lun = 1; 4442 - #endif 4443 - 4444 4441 } 4445 4442 4446 4443
-4
drivers/scsi/ncr53c8xx.h
··· 264 264 #define SCSI_NCR_SG_TABLESIZE (SCSI_NCR_MAX_SCATTER) 265 265 #define SCSI_NCR_TIMER_INTERVAL (HZ) 266 266 267 - #if 1 /* defined CONFIG_SCSI_MULTI_LUN */ 268 267 #define SCSI_NCR_MAX_LUN (16) 269 - #else 270 - #define SCSI_NCR_MAX_LUN (1) 271 - #endif 272 268 273 269 /* 274 270 * IO functions definition for big/little endian CPU support.
-4
drivers/scsi/scsi_scan.c
··· 81 81 82 82 #define MAX_SCSI_LUNS 512 83 83 84 - #ifdef CONFIG_SCSI_MULTI_LUN 85 84 static unsigned int max_scsi_luns = MAX_SCSI_LUNS; 86 - #else 87 - static unsigned int max_scsi_luns = 1; 88 - #endif 89 85 90 86 module_param_named(max_luns, max_scsi_luns, uint, S_IRUGO|S_IWUSR); 91 87 MODULE_PARM_DESC(max_luns,
+1 -3
drivers/usb/storage/Kconfig
··· 18 18 19 19 This option depends on 'SCSI' support being enabled, but you 20 20 probably also need 'SCSI device support: SCSI disk support' 21 - (BLK_DEV_SD) for most USB storage devices. Some devices also 22 - will require 'Probe all LUNs on each SCSI device' 23 - (SCSI_MULTI_LUN). 21 + (BLK_DEV_SD) for most USB storage devices. 24 22 25 23 To compile this driver as a module, choose M here: the 26 24 module will be called usb-storage.