diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-04 21:57:35 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-04 21:57:35 -0400 |
commit | 97d41e90fe61399b99d74820cb7f2d6e0fbac91d (patch) | |
tree | f759371424a26963b04badbb4433e360be4e8750 /drivers/scsi/tmscsim.c | |
parent | 3bdc9d0b408e01c4e556daba0035ba37f603e920 (diff) | |
parent | afaf5a2d341d33b66b47c2716a263ce593460a08 (diff) |
Merge master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6
* master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6: (54 commits)
[SCSI] Initial Commit of qla4xxx
[SCSI] raid class: handle component-add errors
[SCSI] SCSI megaraid_sas: handle thrown errors
[SCSI] SCSI aic94xx: handle sysfs errors
[SCSI] SCSI st: fix error handling in module init, sysfs
[SCSI] SCSI sd: fix module init/exit error handling
[SCSI] SCSI osst: add error handling to module init, sysfs
[SCSI] scsi: remove hosts.h
[SCSI] scsi: Scsi_Cmnd convertion in aic7xxx_old.c
[SCSI] megaraid_sas: sets ioctl timeout and updates version,changelog
[SCSI] megaraid_sas: adds tasklet for cmd completion
[SCSI] megaraid_sas: prints pending cmds before setting hw_crit_error
[SCSI] megaraid_sas: function pointer for disable interrupt
[SCSI] megaraid_sas: frame count optimization
[SCSI] megaraid_sas: FW transition and q size changes
[SCSI] qla2xxx: Update version number to 8.01.07-k2.
[SCSI] qla2xxx: Stall mid-layer error handlers while rport is blocked.
[SCSI] qla2xxx: Add MODULE_FIRMWARE tags.
[SCSI] qla2xxx: Add support for host port state FC transport attribute.
[SCSI] qla2xxx: Add support for fabric name FC transport attribute.
...
Diffstat (limited to 'drivers/scsi/tmscsim.c')
-rw-r--r-- | drivers/scsi/tmscsim.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/drivers/scsi/tmscsim.c b/drivers/scsi/tmscsim.c index 9404ff3d4c79..028d5f641cc6 100644 --- a/drivers/scsi/tmscsim.c +++ b/drivers/scsi/tmscsim.c | |||
@@ -279,6 +279,10 @@ static void dc390_ResetDevParam(struct dc390_acb* pACB); | |||
279 | static u32 dc390_laststatus = 0; | 279 | static u32 dc390_laststatus = 0; |
280 | static u8 dc390_adapterCnt = 0; | 280 | static u8 dc390_adapterCnt = 0; |
281 | 281 | ||
282 | static int disable_clustering; | ||
283 | module_param(disable_clustering, int, S_IRUGO); | ||
284 | MODULE_PARM_DESC(disable_clustering, "If you experience problems with your devices, try setting to 1"); | ||
285 | |||
282 | /* Startup values, to be overriden on the commandline */ | 286 | /* Startup values, to be overriden on the commandline */ |
283 | static int tmscsim[] = {-2, -2, -2, -2, -2, -2}; | 287 | static int tmscsim[] = {-2, -2, -2, -2, -2, -2}; |
284 | 288 | ||
@@ -2299,7 +2303,7 @@ static struct scsi_host_template driver_template = { | |||
2299 | .this_id = 7, | 2303 | .this_id = 7, |
2300 | .sg_tablesize = SG_ALL, | 2304 | .sg_tablesize = SG_ALL, |
2301 | .cmd_per_lun = 1, | 2305 | .cmd_per_lun = 1, |
2302 | .use_clustering = DISABLE_CLUSTERING, | 2306 | .use_clustering = ENABLE_CLUSTERING, |
2303 | }; | 2307 | }; |
2304 | 2308 | ||
2305 | /*********************************************************************** | 2309 | /*********************************************************************** |
@@ -2525,6 +2529,8 @@ static int __devinit dc390_probe_one(struct pci_dev *pdev, | |||
2525 | pci_set_master(pdev); | 2529 | pci_set_master(pdev); |
2526 | 2530 | ||
2527 | error = -ENOMEM; | 2531 | error = -ENOMEM; |
2532 | if (disable_clustering) | ||
2533 | driver_template.use_clustering = DISABLE_CLUSTERING; | ||
2528 | shost = scsi_host_alloc(&driver_template, sizeof(struct dc390_acb)); | 2534 | shost = scsi_host_alloc(&driver_template, sizeof(struct dc390_acb)); |
2529 | if (!shost) | 2535 | if (!shost) |
2530 | goto out_disable_device; | 2536 | goto out_disable_device; |
@@ -2660,6 +2666,10 @@ static struct pci_driver dc390_driver = { | |||
2660 | 2666 | ||
2661 | static int __init dc390_module_init(void) | 2667 | static int __init dc390_module_init(void) |
2662 | { | 2668 | { |
2669 | if (!disable_clustering) | ||
2670 | printk(KERN_INFO "DC390: clustering now enabled by default. If you get problems load\n" | ||
2671 | "\twith \"disable_clustering=1\" and report to maintainers\n"); | ||
2672 | |||
2663 | if (tmscsim[0] == -1 || tmscsim[0] > 15) { | 2673 | if (tmscsim[0] == -1 || tmscsim[0] > 15) { |
2664 | tmscsim[0] = 7; | 2674 | tmscsim[0] = 7; |
2665 | tmscsim[1] = 4; | 2675 | tmscsim[1] = 4; |