diff options
author | Mark Haverkamp <markh@osdl.org> | 2006-09-19 11:59:43 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-09-23 21:09:03 -0400 |
commit | 653ba58d55feb708c6f97e6f3e84901b3a03c9c0 (patch) | |
tree | 833d63cf7fac90e693f0a2503e90d4a1f7362b9d /drivers/scsi/aacraid/aachba.c | |
parent | 65101355450df2d935f8d56ac3abef279f28a0e2 (diff) |
[SCSI] aacraid: expose physical devices
Received from Mark Salyzyn:
I am placing this functionality into an insmod parameter. Normally the physical
components are exported to sg, and are blocked from showing up in sd.
Note that the pass-through I/O path via the driver through the Firmware to the
physical disks is not an optimized path, the card is designed for Hardware
RAID, elevator sorting and caching. This should not be used as a means for
utilizing the aacraid based controllers as a generic scsi/SATA/SAS controller,
performance should suck by a few percentage points, any RAID meta-data on the
drives will confuse the controller about who owns the drives and there is a
high risk of destroying content in both directions. Unreliable and for
experimentation or strange controlled circumstances only.
Signed-off-by: Mark Haverkamp <markh@osdl.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/aacraid/aachba.c')
-rw-r--r-- | drivers/scsi/aacraid/aachba.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/scsi/aacraid/aachba.c b/drivers/scsi/aacraid/aachba.c index b14f7cac30e9..ac108f9e2674 100644 --- a/drivers/scsi/aacraid/aachba.c +++ b/drivers/scsi/aacraid/aachba.c | |||
@@ -169,6 +169,10 @@ MODULE_PARM_DESC(numacb, "Request a limit to the number of adapter control block | |||
169 | int acbsize = -1; | 169 | int acbsize = -1; |
170 | module_param(acbsize, int, S_IRUGO|S_IWUSR); | 170 | module_param(acbsize, int, S_IRUGO|S_IWUSR); |
171 | MODULE_PARM_DESC(acbsize, "Request a specific adapter control block (FIB) size. Valid values are 512, 2048, 4096 and 8192. Default is to use suggestion from Firmware."); | 171 | MODULE_PARM_DESC(acbsize, "Request a specific adapter control block (FIB) size. Valid values are 512, 2048, 4096 and 8192. Default is to use suggestion from Firmware."); |
172 | |||
173 | int expose_physicals = 0; | ||
174 | module_param(expose_physicals, int, S_IRUGO|S_IWUSR); | ||
175 | MODULE_PARM_DESC(expose_physicals, "Expose physical components of the arrays. 0=off, 1=on"); | ||
172 | /** | 176 | /** |
173 | * aac_get_config_status - check the adapter configuration | 177 | * aac_get_config_status - check the adapter configuration |
174 | * @common: adapter to query | 178 | * @common: adapter to query |
@@ -1535,7 +1539,7 @@ int aac_scsi_cmd(struct scsi_cmnd * scsicmd) | |||
1535 | return 0; | 1539 | return 0; |
1536 | } | 1540 | } |
1537 | } else { /* check for physical non-dasd devices */ | 1541 | } else { /* check for physical non-dasd devices */ |
1538 | if(dev->nondasd_support == 1){ | 1542 | if ((dev->nondasd_support == 1) || expose_physicals) { |
1539 | if (dev->in_reset) | 1543 | if (dev->in_reset) |
1540 | return -1; | 1544 | return -1; |
1541 | return aac_send_srb_fib(scsicmd); | 1545 | return aac_send_srb_fib(scsicmd); |