aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorMoger, Babu <Babu.Moger@netapp.com>2011-10-27 14:36:32 -0400
committerJames Bottomley <JBottomley@Parallels.com>2011-11-03 03:18:10 -0400
commitab72002bc53eb8cf06615503878ee71494921fcc (patch)
tree2f7e133123efb704b89b97516d4924967df063d6 /drivers/scsi
parenteae627e4ba07cb5765bbfdfec514f6808326a691 (diff)
[SCSI] scsi_dh_alua: Fix the time inteval for alua rtpg commands
This patch corrects the retry interval for alua rtpg command. Purpose was to retry the commands in seconds. But that was not happening. Reason is msleep takes argument in milliseconds. Also added minor text after successful attach. Signed-off-by: Babu Moger <babu.moger@netapp.com> Acked-by: Hannes Reinecke <hare@suse.de> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/device_handler/scsi_dh_alua.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/device_handler/scsi_dh_alua.c b/drivers/scsi/device_handler/scsi_dh_alua.c
index 627f4b5e517..fe4df2da309 100644
--- a/drivers/scsi/device_handler/scsi_dh_alua.c
+++ b/drivers/scsi/device_handler/scsi_dh_alua.c
@@ -507,7 +507,7 @@ static int alua_rtpg(struct scsi_device *sdev, struct alua_dh_data *h)
507 int len, k, off, valid_states = 0; 507 int len, k, off, valid_states = 0;
508 unsigned char *ucp; 508 unsigned char *ucp;
509 unsigned err; 509 unsigned err;
510 unsigned long expiry, interval = 1; 510 unsigned long expiry, interval = 1000;
511 511
512 expiry = round_jiffies_up(jiffies + ALUA_FAILOVER_TIMEOUT); 512 expiry = round_jiffies_up(jiffies + ALUA_FAILOVER_TIMEOUT);
513 retry: 513 retry:
@@ -734,6 +734,7 @@ static int alua_bus_attach(struct scsi_device *sdev)
734 spin_lock_irqsave(sdev->request_queue->queue_lock, flags); 734 spin_lock_irqsave(sdev->request_queue->queue_lock, flags);
735 sdev->scsi_dh_data = scsi_dh_data; 735 sdev->scsi_dh_data = scsi_dh_data;
736 spin_unlock_irqrestore(sdev->request_queue->queue_lock, flags); 736 spin_unlock_irqrestore(sdev->request_queue->queue_lock, flags);
737 sdev_printk(KERN_NOTICE, sdev, "%s: Attached\n", ALUA_DH_NAME);
737 738
738 return 0; 739 return 0;
739 740