aboutsummaryrefslogtreecommitdiffstats
path: root/include/scsi/libsas.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-08-25 11:37:41 -0400
committerMartin K. Petersen <martin.petersen@oracle.com>2017-08-29 21:51:45 -0400
commit651a013649943710a900551ec6e03d2084e1a65a (patch)
tree14a92a3104c919eb439970de5471643b6f915ffc /include/scsi/libsas.h
parenteaa79a6cd733e1f978613a5fcf5f7c1cdb38eb2a (diff)
scsi: scsi_transport_sas: switch to bsg-lib for SMP passthrough
Simplify the SMP passthrough code by switching it to the generic bsg-lib helpers that abstract away the details of the request code, and gets drivers out of seeing struct scsi_request. For the libsas host SMP code there is a small behavior difference in that we now always clear the residual len for successful commands, similar to the three other SMP handler implementations. Given that there is no partial command handling in the host SMP handler this should not matter in practice. [mkp: typos and checkpatch fixes] Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'include/scsi/libsas.h')
-rw-r--r--include/scsi/libsas.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/scsi/libsas.h b/include/scsi/libsas.h
index e7c012ce5ecd..6c0dc6155ee7 100644
--- a/include/scsi/libsas.h
+++ b/include/scsi/libsas.h
@@ -721,9 +721,6 @@ extern int sas_slave_alloc(struct scsi_device *);
721extern int sas_ioctl(struct scsi_device *sdev, int cmd, void __user *arg); 721extern int sas_ioctl(struct scsi_device *sdev, int cmd, void __user *arg);
722extern int sas_drain_work(struct sas_ha_struct *ha); 722extern int sas_drain_work(struct sas_ha_struct *ha);
723 723
724extern int sas_smp_handler(struct Scsi_Host *shost, struct sas_rphy *rphy,
725 struct request *req);
726
727extern void sas_ssp_task_response(struct device *dev, struct sas_task *task, 724extern void sas_ssp_task_response(struct device *dev, struct sas_task *task,
728 struct ssp_response_iu *iu); 725 struct ssp_response_iu *iu);
729struct sas_phy *sas_get_local_phy(struct domain_device *dev); 726struct sas_phy *sas_get_local_phy(struct domain_device *dev);