aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristof Schmitt <christof.schmitt@de.ibm.com>2007-11-05 06:37:43 -0500
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-01-11 19:22:39 -0500
commita11b4743e58f53213acdd16e3a0004d035aa45f0 (patch)
treeef56fb407c8566601ffc8cb21b327f3981e8dc73
parentf858317d894a22eb2c26edcd26c7060fc4f40a15 (diff)
[SCSI] zfcp: Remove unnecessary eh_bus_reset_handler callback
The callback function used by zfcp always returns success, which is an indication for the SCSI midlayer to stop error handling. Remove the bus_reset callback, since the same function will be called via the host_reset callback. Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com> Signed-off-by: Swen Schillig <swen@vnet.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
-rw-r--r--drivers/s390/scsi/zfcp_scsi.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/s390/scsi/zfcp_scsi.c b/drivers/s390/scsi/zfcp_scsi.c
index abae2027f7e5..28e2b52bf851 100644
--- a/drivers/s390/scsi/zfcp_scsi.c
+++ b/drivers/s390/scsi/zfcp_scsi.c
@@ -51,7 +51,6 @@ struct zfcp_data zfcp_data = {
51 .queuecommand = zfcp_scsi_queuecommand, 51 .queuecommand = zfcp_scsi_queuecommand,
52 .eh_abort_handler = zfcp_scsi_eh_abort_handler, 52 .eh_abort_handler = zfcp_scsi_eh_abort_handler,
53 .eh_device_reset_handler = zfcp_scsi_eh_device_reset_handler, 53 .eh_device_reset_handler = zfcp_scsi_eh_device_reset_handler,
54 .eh_bus_reset_handler = zfcp_scsi_eh_host_reset_handler,
55 .eh_host_reset_handler = zfcp_scsi_eh_host_reset_handler, 54 .eh_host_reset_handler = zfcp_scsi_eh_host_reset_handler,
56 .can_queue = 4096, 55 .can_queue = 4096,
57 .this_id = -1, 56 .this_id = -1,
@@ -542,7 +541,7 @@ zfcp_task_management_function(struct zfcp_unit *unit, u8 tm_flags,
542} 541}
543 542
544/** 543/**
545 * zfcp_scsi_eh_host_reset_handler - handler for host and bus reset 544 * zfcp_scsi_eh_host_reset_handler - handler for host reset
546 */ 545 */
547static int zfcp_scsi_eh_host_reset_handler(struct scsi_cmnd *scpnt) 546static int zfcp_scsi_eh_host_reset_handler(struct scsi_cmnd *scpnt)
548{ 547{
@@ -552,7 +551,7 @@ static int zfcp_scsi_eh_host_reset_handler(struct scsi_cmnd *scpnt)
552 unit = (struct zfcp_unit*) scpnt->device->hostdata; 551 unit = (struct zfcp_unit*) scpnt->device->hostdata;
553 adapter = unit->port->adapter; 552 adapter = unit->port->adapter;
554 553
555 ZFCP_LOG_NORMAL("host/bus reset because of problems with " 554 ZFCP_LOG_NORMAL("host reset because of problems with "
556 "unit 0x%016Lx\n", unit->fcp_lun); 555 "unit 0x%016Lx\n", unit->fcp_lun);
557 556
558 zfcp_erp_adapter_reopen(adapter, 0); 557 zfcp_erp_adapter_reopen(adapter, 0);