From: Sebastian Herbszt <herbszt@gmx.de>
To: James Smart <james.smart@avagotech.com>
Cc: linux-scsi@vger.kernel.org, Sebastian Herbszt <herbszt@gmx.de>
Subject: Re: [PATCH 7/9] lpfc: Fix scsi task management error message.
Date: Sun, 24 May 2015 22:27:39 +0200 [thread overview]
Message-ID: <20150524222739.0000392d@localhost> (raw)
In-Reply-To: <555f4061.JF1uAXJ3MNmJF4W9%james.smart@avagotech.com>
James Smart wrote:
>
> Fix scsi task management error message.
>
> TMF's were getting error messages on FCP_RSP errors (underrun). Underruns
> aren't meaningful in the scenario. Change the error message to filter out
> these response check errors, and don't unconditionally mark the cmd as
> in error.
>
> Signed-off-by: Dick Kennedy <dick.kennedy@avagotech.com>
> Signed-off-by: James Smart <james.smart@avagotech.com>
> ---
> drivers/scsi/lpfc/lpfc_scsi.c | 18 ++++++++++--------
> 1 file changed, 10 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/scsi/lpfc/lpfc_scsi.c b/drivers/scsi/lpfc/lpfc_scsi.c
> index b3b195f..e5eb40d 100644
> --- a/drivers/scsi/lpfc/lpfc_scsi.c
> +++ b/drivers/scsi/lpfc/lpfc_scsi.c
> @@ -5011,13 +5011,16 @@ lpfc_send_taskmgmt(struct lpfc_vport *vport, struct lpfc_rport_data *rdata,
> iocbq, iocbqrsp, lpfc_cmd->timeout);
> if ((status != IOCB_SUCCESS) ||
> (iocbqrsp->iocb.ulpStatus != IOSTAT_SUCCESS)) {
> - lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP,
> - "0727 TMF %s to TGT %d LUN %llu failed (%d, %d) "
> - "iocb_flag x%x\n",
> - lpfc_taskmgmt_name(task_mgmt_cmd),
> - tgt_id, lun_id, iocbqrsp->iocb.ulpStatus,
> - iocbqrsp->iocb.un.ulpWord[4],
> - iocbq->iocb_flag);
> + if (status != IOCB_SUCCESS ||
> + iocbqrsp->iocb.ulpStatus != IOSTAT_FCP_RSP_ERROR)
> + lpfc_printf_vlog(vport, KERN_ERR, LOG_FCP,
> + "0727 TMF %s to TGT %d LUN %llu "
> + "failed (%d, %d) iocb_flag x%x\n",
> + lpfc_taskmgmt_name(task_mgmt_cmd),
> + tgt_id, lun_id,
> + iocbqrsp->iocb.ulpStatus,
> + iocbqrsp->iocb.un.ulpWord[4],
> + iocbq->iocb_flag);
checkpatch suggests to not split this user-visible string.
Sebastian
next prev parent reply other threads:[~2015-05-24 20:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-22 14:42 [PATCH 7/9] lpfc: Fix scsi task management error message James Smart
2015-05-24 20:27 ` Sebastian Herbszt [this message]
2015-05-25 15:20 ` Hannes Reinecke
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150524222739.0000392d@localhost \
--to=herbszt@gmx.de \
--cc=james.smart@avagotech.com \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.