[PATCH 05/13] libfc: rename target reset

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Mike Christie <michaelc@xxxxxxxxxxx>

Rename target reset function to lun reset because that is what it sends.
Also make it static because it is not exported and not used in other
files.

Signed-off-by: Mike Christie <michaelc@xxxxxxxxxxx>
---
 drivers/scsi/libfc/fc_scsi.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/scsi/libfc/fc_scsi.c b/drivers/scsi/libfc/fc_scsi.c
index a438aa0..ec7f3dd 100644
--- a/drivers/scsi/libfc/fc_scsi.c
+++ b/drivers/scsi/libfc/fc_scsi.c
@@ -1128,10 +1128,10 @@ retry:
 }
 
 /*
- * Scsi target reset handler- send a LUN RESET to the device
+ * Scsi device reset handler- send a LUN RESET to the device
  * and wait for reset reply
  */
-int fc_target_reset(struct fc_lport *lp, struct fc_scsi_pkt *fsp)
+static int fc_lun_reset(struct fc_lport *lp, struct fc_scsi_pkt *fsp)
 {
 	unsigned long flags;
 	u32 idx;
@@ -2115,7 +2115,7 @@ int fc_eh_device_reset(struct scsi_cmnd *sc_cmd)
 		/*
 		 * flush outstanding commands
 		 */
-		rc = fc_target_reset(lp, sp);
+		rc = fc_lun_reset(lp, sp);
 		sp->state = FC_SRB_FREE;
 		fc_scsi_pkt_free(sp);
 	}
-- 
1.5.4.1

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux