Commit 0ae808e0 authored by Brian King's avatar Brian King Committed by James Bottomley

[SCSI] ibmvfc: Reduce unnecessary log noise

Reduces some unnecessary log noise by removing a printk during
host port state query and increasing the log level required to
log received async events.
Signed-off-by: default avatarBrian King <brking@linux.vnet.ibm.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
parent e41443ec
...@@ -963,6 +963,9 @@ static void ibmvfc_get_host_port_state(struct Scsi_Host *shost) ...@@ -963,6 +963,9 @@ static void ibmvfc_get_host_port_state(struct Scsi_Host *shost)
case IBMVFC_HALTED: case IBMVFC_HALTED:
fc_host_port_state(shost) = FC_PORTSTATE_BLOCKED; fc_host_port_state(shost) = FC_PORTSTATE_BLOCKED;
break; break;
case IBMVFC_NO_CRQ:
fc_host_port_state(shost) = FC_PORTSTATE_UNKNOWN;
break;
default: default:
ibmvfc_log(vhost, 3, "Unknown port state: %d\n", vhost->state); ibmvfc_log(vhost, 3, "Unknown port state: %d\n", vhost->state);
fc_host_port_state(shost) = FC_PORTSTATE_UNKNOWN; fc_host_port_state(shost) = FC_PORTSTATE_UNKNOWN;
...@@ -1404,7 +1407,7 @@ static void ibmvfc_log_error(struct ibmvfc_event *evt) ...@@ -1404,7 +1407,7 @@ static void ibmvfc_log_error(struct ibmvfc_event *evt)
err = cmd_status[index].name; err = cmd_status[index].name;
} }
if (!logerr && (vhost->log_level <= IBMVFC_DEFAULT_LOG_LEVEL)) if (!logerr && (vhost->log_level <= (IBMVFC_DEFAULT_LOG_LEVEL + 1)))
return; return;
if (rsp->flags & FCP_RSP_LEN_VALID) if (rsp->flags & FCP_RSP_LEN_VALID)
...@@ -2054,7 +2057,7 @@ static void ibmvfc_handle_async(struct ibmvfc_async_crq *crq, ...@@ -2054,7 +2057,7 @@ static void ibmvfc_handle_async(struct ibmvfc_async_crq *crq,
{ {
const char *desc = ibmvfc_get_ae_desc(crq->event); const char *desc = ibmvfc_get_ae_desc(crq->event);
ibmvfc_log(vhost, 2, "%s event received\n", desc); ibmvfc_log(vhost, 3, "%s event received\n", desc);
switch (crq->event) { switch (crq->event) {
case IBMVFC_AE_LINK_UP: case IBMVFC_AE_LINK_UP:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment