aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/libata-scsi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/libata-scsi.c')
-rw-r--r--drivers/ata/libata-scsi.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c
index 47ea111d5ace..4c32d93d44b1 100644
--- a/drivers/ata/libata-scsi.c
+++ b/drivers/ata/libata-scsi.c
@@ -3081,7 +3081,7 @@ static void ata_scsi_remove_dev(struct ata_device *dev)
3081 3081
3082/** 3082/**
3083 * ata_scsi_hotplug - SCSI part of hotplug 3083 * ata_scsi_hotplug - SCSI part of hotplug
3084 * @data: Pointer to ATA port to perform SCSI hotplug on 3084 * @work: Pointer to ATA port to perform SCSI hotplug on
3085 * 3085 *
3086 * Perform SCSI part of hotplug. It's executed from a separate 3086 * Perform SCSI part of hotplug. It's executed from a separate
3087 * workqueue after EH completes. This is necessary because SCSI 3087 * workqueue after EH completes. This is necessary because SCSI
@@ -3091,9 +3091,10 @@ static void ata_scsi_remove_dev(struct ata_device *dev)
3091 * LOCKING: 3091 * LOCKING:
3092 * Kernel thread context (may sleep). 3092 * Kernel thread context (may sleep).
3093 */ 3093 */
3094void ata_scsi_hotplug(void *data) 3094void ata_scsi_hotplug(struct work_struct *work)
3095{ 3095{
3096 struct ata_port *ap = data; 3096 struct ata_port *ap =
3097 container_of(work, struct ata_port, hotplug_task.work);
3097 int i; 3098 int i;
3098 3099
3099 if (ap->pflags & ATA_PFLAG_UNLOADING) { 3100 if (ap->pflags & ATA_PFLAG_UNLOADING) {
@@ -3192,7 +3193,7 @@ static int ata_scsi_user_scan(struct Scsi_Host *shost, unsigned int channel,
3192 3193
3193/** 3194/**
3194 * ata_scsi_dev_rescan - initiate scsi_rescan_device() 3195 * ata_scsi_dev_rescan - initiate scsi_rescan_device()
3195 * @data: Pointer to ATA port to perform scsi_rescan_device() 3196 * @work: Pointer to ATA port to perform scsi_rescan_device()
3196 * 3197 *
3197 * After ATA pass thru (SAT) commands are executed successfully, 3198 * After ATA pass thru (SAT) commands are executed successfully,
3198 * libata need to propagate the changes to SCSI layer. This 3199 * libata need to propagate the changes to SCSI layer. This
@@ -3202,9 +3203,10 @@ static int ata_scsi_user_scan(struct Scsi_Host *shost, unsigned int channel,
3202 * LOCKING: 3203 * LOCKING:
3203 * Kernel thread context (may sleep). 3204 * Kernel thread context (may sleep).
3204 */ 3205 */
3205void ata_scsi_dev_rescan(void *data) 3206void ata_scsi_dev_rescan(struct work_struct *work)
3206{ 3207{
3207 struct ata_port *ap = data; 3208 struct ata_port *ap =
3209 container_of(work, struct ata_port, scsi_rescan_task);
3208 struct ata_device *dev; 3210 struct ata_device *dev;
3209 unsigned int i; 3211 unsigned int i;
3210 3212