diff options
author | Swen Schillig <swen@vnet.ibm.com> | 2010-12-02 09:16:16 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-12-21 13:24:46 -0500 |
commit | ea4a3a6ac40e2a585654808d4aefb39a6d57dca0 (patch) | |
tree | c0da0843fc8d4087448ffc4e1b7992dab6aa62f5 /drivers/s390/scsi/zfcp_fc.c | |
parent | 250a1352b95e1db3216e5c5d4f4365bea5122f4a (diff) |
[SCSI] zfcp: Redesign of the debug tracing final cleanup.
This patch is the final cleanup of the redesign from the zfcp tracing.
Structures and elements which were used by multiple areas of the
former debug tracing are now changed to the new scheme.
Signed-off-by: Swen Schillig <swen@vnet.ibm.com>
Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/s390/scsi/zfcp_fc.c')
-rw-r--r-- | drivers/s390/scsi/zfcp_fc.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/s390/scsi/zfcp_fc.c b/drivers/s390/scsi/zfcp_fc.c index 7d44d9c59bdc..30cf91a787a3 100644 --- a/drivers/s390/scsi/zfcp_fc.c +++ b/drivers/s390/scsi/zfcp_fc.c | |||
@@ -174,7 +174,7 @@ static void _zfcp_fc_incoming_rscn(struct zfcp_fsf_req *fsf_req, u32 range, | |||
174 | if (!port->d_id) | 174 | if (!port->d_id) |
175 | zfcp_erp_port_reopen(port, | 175 | zfcp_erp_port_reopen(port, |
176 | ZFCP_STATUS_COMMON_ERP_FAILED, | 176 | ZFCP_STATUS_COMMON_ERP_FAILED, |
177 | "fcrscn1", NULL); | 177 | "fcrscn1"); |
178 | } | 178 | } |
179 | read_unlock_irqrestore(&adapter->port_list_lock, flags); | 179 | read_unlock_irqrestore(&adapter->port_list_lock, flags); |
180 | } | 180 | } |
@@ -215,7 +215,7 @@ static void zfcp_fc_incoming_wwpn(struct zfcp_fsf_req *req, u64 wwpn) | |||
215 | read_lock_irqsave(&adapter->port_list_lock, flags); | 215 | read_lock_irqsave(&adapter->port_list_lock, flags); |
216 | list_for_each_entry(port, &adapter->port_list, list) | 216 | list_for_each_entry(port, &adapter->port_list, list) |
217 | if (port->wwpn == wwpn) { | 217 | if (port->wwpn == wwpn) { |
218 | zfcp_erp_port_forced_reopen(port, 0, "fciwwp1", req); | 218 | zfcp_erp_port_forced_reopen(port, 0, "fciwwp1"); |
219 | break; | 219 | break; |
220 | } | 220 | } |
221 | read_unlock_irqrestore(&adapter->port_list_lock, flags); | 221 | read_unlock_irqrestore(&adapter->port_list_lock, flags); |
@@ -360,7 +360,7 @@ void zfcp_fc_port_did_lookup(struct work_struct *work) | |||
360 | ret = zfcp_fc_ns_gid_pn(port); | 360 | ret = zfcp_fc_ns_gid_pn(port); |
361 | if (ret) { | 361 | if (ret) { |
362 | /* could not issue gid_pn for some reason */ | 362 | /* could not issue gid_pn for some reason */ |
363 | zfcp_erp_adapter_reopen(port->adapter, 0, "fcgpn_1", NULL); | 363 | zfcp_erp_adapter_reopen(port->adapter, 0, "fcgpn_1"); |
364 | goto out; | 364 | goto out; |
365 | } | 365 | } |
366 | 366 | ||
@@ -369,7 +369,7 @@ void zfcp_fc_port_did_lookup(struct work_struct *work) | |||
369 | goto out; | 369 | goto out; |
370 | } | 370 | } |
371 | 371 | ||
372 | zfcp_erp_port_reopen(port, 0, "fcgpn_3", NULL); | 372 | zfcp_erp_port_reopen(port, 0, "fcgpn_3"); |
373 | out: | 373 | out: |
374 | put_device(&port->dev); | 374 | put_device(&port->dev); |
375 | } | 375 | } |
@@ -426,7 +426,7 @@ static void zfcp_fc_adisc_handler(void *data) | |||
426 | if (adisc->els.status) { | 426 | if (adisc->els.status) { |
427 | /* request rejected or timed out */ | 427 | /* request rejected or timed out */ |
428 | zfcp_erp_port_forced_reopen(port, ZFCP_STATUS_COMMON_ERP_FAILED, | 428 | zfcp_erp_port_forced_reopen(port, ZFCP_STATUS_COMMON_ERP_FAILED, |
429 | "fcadh_1", NULL); | 429 | "fcadh_1"); |
430 | goto out; | 430 | goto out; |
431 | } | 431 | } |
432 | 432 | ||
@@ -436,7 +436,7 @@ static void zfcp_fc_adisc_handler(void *data) | |||
436 | if ((port->wwpn != adisc_resp->adisc_wwpn) || | 436 | if ((port->wwpn != adisc_resp->adisc_wwpn) || |
437 | !(atomic_read(&port->status) & ZFCP_STATUS_COMMON_OPEN)) { | 437 | !(atomic_read(&port->status) & ZFCP_STATUS_COMMON_OPEN)) { |
438 | zfcp_erp_port_reopen(port, ZFCP_STATUS_COMMON_ERP_FAILED, | 438 | zfcp_erp_port_reopen(port, ZFCP_STATUS_COMMON_ERP_FAILED, |
439 | "fcadh_2", NULL); | 439 | "fcadh_2"); |
440 | goto out; | 440 | goto out; |
441 | } | 441 | } |
442 | 442 | ||
@@ -507,7 +507,7 @@ void zfcp_fc_link_test_work(struct work_struct *work) | |||
507 | 507 | ||
508 | /* send of ADISC was not possible */ | 508 | /* send of ADISC was not possible */ |
509 | atomic_clear_mask(ZFCP_STATUS_PORT_LINK_TEST, &port->status); | 509 | atomic_clear_mask(ZFCP_STATUS_PORT_LINK_TEST, &port->status); |
510 | zfcp_erp_port_forced_reopen(port, 0, "fcltwk1", NULL); | 510 | zfcp_erp_port_forced_reopen(port, 0, "fcltwk1"); |
511 | 511 | ||
512 | out: | 512 | out: |
513 | put_device(&port->dev); | 513 | put_device(&port->dev); |
@@ -659,7 +659,7 @@ static int zfcp_fc_eval_gpn_ft(struct zfcp_fc_gpn_ft *gpn_ft, | |||
659 | port = zfcp_port_enqueue(adapter, acc->fp_wwpn, | 659 | port = zfcp_port_enqueue(adapter, acc->fp_wwpn, |
660 | ZFCP_STATUS_COMMON_NOESC, d_id); | 660 | ZFCP_STATUS_COMMON_NOESC, d_id); |
661 | if (!IS_ERR(port)) | 661 | if (!IS_ERR(port)) |
662 | zfcp_erp_port_reopen(port, 0, "fcegpf1", NULL); | 662 | zfcp_erp_port_reopen(port, 0, "fcegpf1"); |
663 | else if (PTR_ERR(port) != -EEXIST) | 663 | else if (PTR_ERR(port) != -EEXIST) |
664 | ret = PTR_ERR(port); | 664 | ret = PTR_ERR(port); |
665 | } | 665 | } |
@@ -671,7 +671,7 @@ static int zfcp_fc_eval_gpn_ft(struct zfcp_fc_gpn_ft *gpn_ft, | |||
671 | write_unlock_irqrestore(&adapter->port_list_lock, flags); | 671 | write_unlock_irqrestore(&adapter->port_list_lock, flags); |
672 | 672 | ||
673 | list_for_each_entry_safe(port, tmp, &remove_lh, list) { | 673 | list_for_each_entry_safe(port, tmp, &remove_lh, list) { |
674 | zfcp_erp_port_shutdown(port, 0, "fcegpf2", NULL); | 674 | zfcp_erp_port_shutdown(port, 0, "fcegpf2"); |
675 | zfcp_device_unregister(&port->dev, &zfcp_sysfs_port_attrs); | 675 | zfcp_device_unregister(&port->dev, &zfcp_sysfs_port_attrs); |
676 | } | 676 | } |
677 | 677 | ||