aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2011-10-28 19:44:18 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-10-28 19:44:18 -0400
commitec7ae517537ae5c7b0b2cd7f562dfa3e7a05b954 (patch)
treee6b0c64a51a7c0aa0efd09d4f7a80872e3b1657a /drivers/ata
parent97d2eb13a019ec09cc1a7ea2d3705c0b117b3c0d (diff)
parent590134fa78fbdbe5fea78c7ae0b2c3364bc9572f (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6: (204 commits) [SCSI] qla4xxx: export address/port of connection (fix udev disk names) [SCSI] ipr: Fix BUG on adapter dump timeout [SCSI] megaraid_sas: Fix instance access in megasas_reset_timer [SCSI] hpsa: change confusing message to be more clear [SCSI] iscsi class: fix vlan configuration [SCSI] qla4xxx: fix data alignment and use nl helpers [SCSI] iscsi class: fix link local mispelling [SCSI] iscsi class: Replace iscsi_get_next_target_id with IDA [SCSI] aacraid: use lower snprintf() limit [SCSI] lpfc 8.3.27: Change driver version to 8.3.27 [SCSI] lpfc 8.3.27: T10 additions for SLI4 [SCSI] lpfc 8.3.27: Fix queue allocation failure recovery [SCSI] lpfc 8.3.27: Change algorithm for getting physical port name [SCSI] lpfc 8.3.27: Changed worst case mailbox timeout [SCSI] lpfc 8.3.27: Miscellanous logic and interface fixes [SCSI] megaraid_sas: Changelog and version update [SCSI] megaraid_sas: Add driver workaround for PERC5/1068 kdump kernel panic [SCSI] megaraid_sas: Add multiple MSI-X vector/multiple reply queue support [SCSI] megaraid_sas: Add support for MegaRAID 9360/9380 12GB/s controllers [SCSI] megaraid_sas: Clear FUSION_IN_RESET before enabling interrupts ...
Diffstat (limited to 'drivers/ata')
-rw-r--r--drivers/ata/libata-core.c1
-rw-r--r--drivers/ata/libata-scsi.c44
2 files changed, 30 insertions, 15 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index 32fc41c1da30..c04ad68cb602 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -6713,6 +6713,7 @@ EXPORT_SYMBOL_GPL(ata_scsi_queuecmd);
6713EXPORT_SYMBOL_GPL(ata_scsi_slave_config); 6713EXPORT_SYMBOL_GPL(ata_scsi_slave_config);
6714EXPORT_SYMBOL_GPL(ata_scsi_slave_destroy); 6714EXPORT_SYMBOL_GPL(ata_scsi_slave_destroy);
6715EXPORT_SYMBOL_GPL(ata_scsi_change_queue_depth); 6715EXPORT_SYMBOL_GPL(ata_scsi_change_queue_depth);
6716EXPORT_SYMBOL_GPL(__ata_change_queue_depth);
6716EXPORT_SYMBOL_GPL(sata_scr_valid); 6717EXPORT_SYMBOL_GPL(sata_scr_valid);
6717EXPORT_SYMBOL_GPL(sata_scr_read); 6718EXPORT_SYMBOL_GPL(sata_scr_read);
6718EXPORT_SYMBOL_GPL(sata_scr_write); 6719EXPORT_SYMBOL_GPL(sata_scr_write);
diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c
index 46d087f08607..19ba77032ac2 100644
--- a/drivers/ata/libata-scsi.c
+++ b/drivers/ata/libata-scsi.c
@@ -1215,25 +1215,15 @@ void ata_scsi_slave_destroy(struct scsi_device *sdev)
1215} 1215}
1216 1216
1217/** 1217/**
1218 * ata_scsi_change_queue_depth - SCSI callback for queue depth config 1218 * __ata_change_queue_depth - helper for ata_scsi_change_queue_depth
1219 * @sdev: SCSI device to configure queue depth for
1220 * @queue_depth: new queue depth
1221 * @reason: calling context
1222 *
1223 * This is libata standard hostt->change_queue_depth callback.
1224 * SCSI will call into this callback when user tries to set queue
1225 * depth via sysfs.
1226 * 1219 *
1227 * LOCKING: 1220 * libsas and libata have different approaches for associating a sdev to
1228 * SCSI layer (we don't care) 1221 * its ata_port.
1229 * 1222 *
1230 * RETURNS:
1231 * Newly configured queue depth.
1232 */ 1223 */
1233int ata_scsi_change_queue_depth(struct scsi_device *sdev, int queue_depth, 1224int __ata_change_queue_depth(struct ata_port *ap, struct scsi_device *sdev,
1234 int reason) 1225 int queue_depth, int reason)
1235{ 1226{
1236 struct ata_port *ap = ata_shost_to_port(sdev->host);
1237 struct ata_device *dev; 1227 struct ata_device *dev;
1238 unsigned long flags; 1228 unsigned long flags;
1239 1229
@@ -1269,6 +1259,30 @@ int ata_scsi_change_queue_depth(struct scsi_device *sdev, int queue_depth,
1269} 1259}
1270 1260
1271/** 1261/**
1262 * ata_scsi_change_queue_depth - SCSI callback for queue depth config
1263 * @sdev: SCSI device to configure queue depth for
1264 * @queue_depth: new queue depth
1265 * @reason: calling context
1266 *
1267 * This is libata standard hostt->change_queue_depth callback.
1268 * SCSI will call into this callback when user tries to set queue
1269 * depth via sysfs.
1270 *
1271 * LOCKING:
1272 * SCSI layer (we don't care)
1273 *
1274 * RETURNS:
1275 * Newly configured queue depth.
1276 */
1277int ata_scsi_change_queue_depth(struct scsi_device *sdev, int queue_depth,
1278 int reason)
1279{
1280 struct ata_port *ap = ata_shost_to_port(sdev->host);
1281
1282 return __ata_change_queue_depth(ap, sdev, queue_depth, reason);
1283}
1284
1285/**
1272 * ata_scsi_start_stop_xlat - Translate SCSI START STOP UNIT command 1286 * ata_scsi_start_stop_xlat - Translate SCSI START STOP UNIT command
1273 * @qc: Storage for translated ATA taskfile 1287 * @qc: Storage for translated ATA taskfile
1274 * 1288 *