From 278f4ff877987c2712cee8e15b9cdd6c20be132f Mon Sep 17 00:00:00 2001 From: Mike Christie Date: Sat, 28 Jun 2008 17:52:43 -0500 Subject: [PATCH 05/12] libfc: rename target reset 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 --- 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 1187c74..0bb8802 100644 --- a/drivers/scsi/libfc/fc_scsi.c +++ b/drivers/scsi/libfc/fc_scsi.c @@ -1132,10 +1132,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; @@ -2129,7 +2129,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