All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mvsas: mvs_lu_reset iterates phy num times when releasing task
@ 2010-08-06 16:16 David Milburn
  2010-08-06 17:21 ` Konstantinos Skarlatos
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: David Milburn @ 2010-08-06 16:16 UTC (permalink / raw)
  To: linux-scsi; +Cc: James.Bottomley, sgruszka, satyasrinivasp, jeff

mvs_lu_reset should not call mvs_release_task phy number of times,
each phy is handled in mvs_release_task.

Signed-off-by: David Milburn <dmilburn@redhat.com>
Cc: Stanislaw Gruszka <sgruszka@redhat.com>
Cc: Srinivas <satyasrinivasp@hcl.in>
Cc: Andy Yan <ayan@marvell.com>
---
 drivers/scsi/mvsas/mv_sas.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/scsi/mvsas/mv_sas.c b/drivers/scsi/mvsas/mv_sas.c
index adedaa9..013ab8d 100644
--- a/drivers/scsi/mvsas/mv_sas.c
+++ b/drivers/scsi/mvsas/mv_sas.c
@@ -1551,7 +1551,7 @@ static int mvs_debug_I_T_nexus_reset(struct domain_device *dev)
 int mvs_lu_reset(struct domain_device *dev, u8 *lun)
 {
 	unsigned long flags;
-	int i, phyno[WIDE_PORT_MAX_PHY], num , rc = TMF_RESP_FUNC_FAILED;
+	int rc = TMF_RESP_FUNC_FAILED;
 	struct mvs_tmf_task tmf_task;
 	struct mvs_device * mvi_dev = dev->lldd_dev;
 	struct mvs_info *mvi = mvi_dev->mvi_info;
@@ -1560,10 +1560,8 @@ int mvs_lu_reset(struct domain_device *dev, u8 *lun)
 	mvi_dev->dev_status = MVS_DEV_EH;
 	rc = mvs_debug_issue_ssp_tmf(dev, lun, &tmf_task);
 	if (rc == TMF_RESP_FUNC_COMPLETE) {
-		num = mvs_find_dev_phyno(dev, phyno);
 		spin_lock_irqsave(&mvi->lock, flags);
-		for (i = 0; i < num; i++)
-			mvs_release_task(mvi, dev);
+		mvs_release_task(mvi, dev);
 		spin_unlock_irqrestore(&mvi->lock, flags);
 	}
 	/* If failed, fall-through I_T_Nexus reset */

^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2010-09-20 21:44 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-06 16:16 [PATCH] mvsas: mvs_lu_reset iterates phy num times when releasing task David Milburn
2010-08-06 17:21 ` Konstantinos Skarlatos
2010-08-06 19:01   ` David Milburn
2010-08-09  8:17     ` Konstantinos Skarlatos
2010-09-03 22:13   ` David Milburn
2010-09-04 19:04     ` Konstantinos Skarlatos
2010-09-08 10:53     ` Konstantinos Skarlatos
2010-09-09 10:49       ` Konstantinos Skarlatos
2010-09-09 14:13         ` David Milburn
2010-09-11 15:57           ` Konstantinos Skarlatos
2010-09-15 13:49             ` David Milburn
2010-09-20 21:38               ` Konstantinos Skarlatos
2010-09-11 15:05         ` Konstantinos Skarlatos
2010-08-07  8:26 ` Jeff Garzik
2010-08-10 19:10 ` Audio Haven
2010-08-10 21:22   ` David Milburn

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.