[SCSI] libsas,libata: fix ->change_queue_{depth|type} for sata devices
authorDan Williams <dan.j.williams@intel.com>
Tue, 20 Sep 2011 22:10:33 +0000 (15:10 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Sun, 2 Oct 2011 17:30:30 +0000 (12:30 -0500)
commitf6e67035a9edd79b8b202c159d5bec560bb9c358
treeba884b5a2de7cb60bd1e6f67813b47fdb8ff509a
parent2fc62e2ac350b8f574e0a09170b350a8f2fa4a02
[SCSI] libsas,libata: fix ->change_queue_{depth|type} for sata devices

Pass queue_depth change requests to libata, and prevent queue_type
changes for ATA devices.

Otherwise:
1/ we do not honor the libata specific restrictions on the queue depth
2/ libsas drivers that do not set sdev->tagged_supported are unable to
   change the queue_depth of ata devices via sysfs

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Acked-by: Jeff Garzik <jgarzik@redhat.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/ata/libata-core.c
drivers/ata/libata-scsi.c
drivers/scsi/libsas/sas_scsi_host.c
include/linux/libata.h