diff options
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_target.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_target.c | 69 |
1 files changed, 20 insertions, 49 deletions
diff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_target.c index 83a8f7a9ec76..ff12d4677cc4 100644 --- a/drivers/scsi/qla2xxx/qla_target.c +++ b/drivers/scsi/qla2xxx/qla_target.c | |||
@@ -430,13 +430,8 @@ static int qlt_reset(struct scsi_qla_host *vha, void *iocb, int mcmd) | |||
430 | } | 430 | } |
431 | 431 | ||
432 | ql_dbg(ql_dbg_tgt, vha, 0xe047, | 432 | ql_dbg(ql_dbg_tgt, vha, 0xe047, |
433 | "scsi(%ld): resetting (session %p from port " | 433 | "scsi(%ld): resetting (session %p from port %8phC mcmd %x, " |
434 | "%02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x, " | 434 | "loop_id %d)\n", vha->host_no, sess, sess->port_name, |
435 | "mcmd %x, loop_id %d)\n", vha->host_no, sess, | ||
436 | sess->port_name[0], sess->port_name[1], | ||
437 | sess->port_name[2], sess->port_name[3], | ||
438 | sess->port_name[4], sess->port_name[5], | ||
439 | sess->port_name[6], sess->port_name[7], | ||
440 | mcmd, loop_id); | 435 | mcmd, loop_id); |
441 | 436 | ||
442 | lun = a->u.isp24.fcp_cmnd.lun; | 437 | lun = a->u.isp24.fcp_cmnd.lun; |
@@ -467,15 +462,10 @@ static void qlt_schedule_sess_for_deletion(struct qla_tgt_sess *sess, | |||
467 | sess->expires = jiffies + dev_loss_tmo * HZ; | 462 | sess->expires = jiffies + dev_loss_tmo * HZ; |
468 | 463 | ||
469 | ql_dbg(ql_dbg_tgt, sess->vha, 0xe048, | 464 | ql_dbg(ql_dbg_tgt, sess->vha, 0xe048, |
470 | "qla_target(%d): session for port %02x:%02x:%02x:" | 465 | "qla_target(%d): session for port %8phC (loop ID %d) scheduled for " |
471 | "%02x:%02x:%02x:%02x:%02x (loop ID %d) scheduled for " | ||
472 | "deletion in %u secs (expires: %lu) immed: %d\n", | 466 | "deletion in %u secs (expires: %lu) immed: %d\n", |
473 | sess->vha->vp_idx, | 467 | sess->vha->vp_idx, sess->port_name, sess->loop_id, dev_loss_tmo, |
474 | sess->port_name[0], sess->port_name[1], | 468 | sess->expires, immediate); |
475 | sess->port_name[2], sess->port_name[3], | ||
476 | sess->port_name[4], sess->port_name[5], | ||
477 | sess->port_name[6], sess->port_name[7], | ||
478 | sess->loop_id, dev_loss_tmo, sess->expires, immediate); | ||
479 | 469 | ||
480 | if (immediate) | 470 | if (immediate) |
481 | schedule_delayed_work(&tgt->sess_del_work, 0); | 471 | schedule_delayed_work(&tgt->sess_del_work, 0); |
@@ -630,13 +620,9 @@ static struct qla_tgt_sess *qlt_create_sess( | |||
630 | sess = kzalloc(sizeof(*sess), GFP_KERNEL); | 620 | sess = kzalloc(sizeof(*sess), GFP_KERNEL); |
631 | if (!sess) { | 621 | if (!sess) { |
632 | ql_dbg(ql_dbg_tgt_mgt, vha, 0xf04a, | 622 | ql_dbg(ql_dbg_tgt_mgt, vha, 0xf04a, |
633 | "qla_target(%u): session allocation failed, " | 623 | "qla_target(%u): session allocation failed, all commands " |
634 | "all commands from port %02x:%02x:%02x:%02x:" | 624 | "from port %8phC will be refused", vha->vp_idx, |
635 | "%02x:%02x:%02x:%02x will be refused", vha->vp_idx, | 625 | fcport->port_name); |
636 | fcport->port_name[0], fcport->port_name[1], | ||
637 | fcport->port_name[2], fcport->port_name[3], | ||
638 | fcport->port_name[4], fcport->port_name[5], | ||
639 | fcport->port_name[6], fcport->port_name[7]); | ||
640 | 626 | ||
641 | return NULL; | 627 | return NULL; |
642 | } | 628 | } |
@@ -680,15 +666,11 @@ static struct qla_tgt_sess *qlt_create_sess( | |||
680 | spin_unlock_irqrestore(&ha->hardware_lock, flags); | 666 | spin_unlock_irqrestore(&ha->hardware_lock, flags); |
681 | 667 | ||
682 | ql_dbg(ql_dbg_tgt_mgt, vha, 0xf04b, | 668 | ql_dbg(ql_dbg_tgt_mgt, vha, 0xf04b, |
683 | "qla_target(%d): %ssession for wwn %02x:%02x:%02x:%02x:" | 669 | "qla_target(%d): %ssession for wwn %8phC (loop_id %d, " |
684 | "%02x:%02x:%02x:%02x (loop_id %d, s_id %x:%x:%x, confirmed" | 670 | "s_id %x:%x:%x, confirmed completion %ssupported) added\n", |
685 | " completion %ssupported) added\n", | 671 | vha->vp_idx, local ? "local " : "", fcport->port_name, |
686 | vha->vp_idx, local ? "local " : "", fcport->port_name[0], | 672 | fcport->loop_id, sess->s_id.b.domain, sess->s_id.b.area, |
687 | fcport->port_name[1], fcport->port_name[2], fcport->port_name[3], | 673 | sess->s_id.b.al_pa, sess->conf_compl_supported ? "" : "not "); |
688 | fcport->port_name[4], fcport->port_name[5], fcport->port_name[6], | ||
689 | fcport->port_name[7], fcport->loop_id, sess->s_id.b.domain, | ||
690 | sess->s_id.b.area, sess->s_id.b.al_pa, sess->conf_compl_supported ? | ||
691 | "" : "not "); | ||
692 | 674 | ||
693 | return sess; | 675 | return sess; |
694 | } | 676 | } |
@@ -730,13 +712,9 @@ void qlt_fc_port_added(struct scsi_qla_host *vha, fc_port_t *fcport) | |||
730 | qlt_undelete_sess(sess); | 712 | qlt_undelete_sess(sess); |
731 | 713 | ||
732 | ql_dbg(ql_dbg_tgt_mgt, vha, 0xf04c, | 714 | ql_dbg(ql_dbg_tgt_mgt, vha, 0xf04c, |
733 | "qla_target(%u): %ssession for port %02x:" | 715 | "qla_target(%u): %ssession for port %8phC " |
734 | "%02x:%02x:%02x:%02x:%02x:%02x:%02x (loop ID %d) " | 716 | "(loop ID %d) reappeared\n", vha->vp_idx, |
735 | "reappeared\n", vha->vp_idx, sess->local ? "local " | 717 | sess->local ? "local " : "", sess->port_name, |
736 | : "", sess->port_name[0], sess->port_name[1], | ||
737 | sess->port_name[2], sess->port_name[3], | ||
738 | sess->port_name[4], sess->port_name[5], | ||
739 | sess->port_name[6], sess->port_name[7], | ||
740 | sess->loop_id); | 718 | sess->loop_id); |
741 | 719 | ||
742 | ql_dbg(ql_dbg_tgt_mgt, vha, 0xf007, | 720 | ql_dbg(ql_dbg_tgt_mgt, vha, 0xf007, |
@@ -749,13 +727,8 @@ void qlt_fc_port_added(struct scsi_qla_host *vha, fc_port_t *fcport) | |||
749 | if (sess && sess->local) { | 727 | if (sess && sess->local) { |
750 | ql_dbg(ql_dbg_tgt_mgt, vha, 0xf04d, | 728 | ql_dbg(ql_dbg_tgt_mgt, vha, 0xf04d, |
751 | "qla_target(%u): local session for " | 729 | "qla_target(%u): local session for " |
752 | "port %02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x " | 730 | "port %8phC (loop ID %d) became global\n", vha->vp_idx, |
753 | "(loop ID %d) became global\n", vha->vp_idx, | 731 | fcport->port_name, sess->loop_id); |
754 | fcport->port_name[0], fcport->port_name[1], | ||
755 | fcport->port_name[2], fcport->port_name[3], | ||
756 | fcport->port_name[4], fcport->port_name[5], | ||
757 | fcport->port_name[6], fcport->port_name[7], | ||
758 | sess->loop_id); | ||
759 | sess->local = 0; | 732 | sess->local = 0; |
760 | } | 733 | } |
761 | ha->tgt.tgt_ops->put_sess(sess); | 734 | ha->tgt.tgt_ops->put_sess(sess); |
@@ -2840,10 +2813,8 @@ static int qlt_24xx_handle_els(struct scsi_qla_host *vha, | |||
2840 | int res = 0; | 2813 | int res = 0; |
2841 | 2814 | ||
2842 | ql_dbg(ql_dbg_tgt_mgt, vha, 0xf026, | 2815 | ql_dbg(ql_dbg_tgt_mgt, vha, 0xf026, |
2843 | "qla_target(%d): Port ID: 0x%02x:%02x:%02x" | 2816 | "qla_target(%d): Port ID: 0x%3phC ELS opcode: 0x%02x\n", |
2844 | " ELS opcode: 0x%02x\n", vha->vp_idx, iocb->u.isp24.port_id[0], | 2817 | vha->vp_idx, iocb->u.isp24.port_id, iocb->u.isp24.status_subcode); |
2845 | iocb->u.isp24.port_id[1], iocb->u.isp24.port_id[2], | ||
2846 | iocb->u.isp24.status_subcode); | ||
2847 | 2818 | ||
2848 | switch (iocb->u.isp24.status_subcode) { | 2819 | switch (iocb->u.isp24.status_subcode) { |
2849 | case ELS_PLOGI: | 2820 | case ELS_PLOGI: |