summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qedf
diff options
context:
space:
mode:
authorSaurav Kashyap <skashyap@marvell.com>2019-04-22 07:44:59 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2019-04-29 14:34:09 +0200
commit7fa4142d8bdc7a6255844ba2edfcca4f28805ab4 (patch)
tree33ba5cccb1f2faf7a1325d716efa038eae808aa3 /drivers/scsi/qedf
parentscsi: qedf: Check the return value of start_xmit (diff)
downloadlinux-7fa4142d8bdc7a6255844ba2edfcca4f28805ab4.tar.xz
linux-7fa4142d8bdc7a6255844ba2edfcca4f28805ab4.zip
scsi: qedf: Print fcport information on wait for upload timeout
Log fcport for which upload failed. Signed-off-by: Saurav Kashyap <skashyap@marvell.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/qedf')
-rw-r--r--drivers/scsi/qedf/qedf_main.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/scsi/qedf/qedf_main.c b/drivers/scsi/qedf/qedf_main.c
index 1de2b18dd96a..ffe536e6e0e4 100644
--- a/drivers/scsi/qedf/qedf_main.c
+++ b/drivers/scsi/qedf/qedf_main.c
@@ -786,11 +786,13 @@ static int qedf_eh_device_reset(struct scsi_cmnd *sc_cmd)
bool qedf_wait_for_upload(struct qedf_ctx *qedf)
{
struct qedf_rport *fcport = NULL;
+ int wait_cnt = 120;
- while (1) {
+ while (wait_cnt--) {
if (atomic_read(&qedf->num_offloads))
- QEDF_INFO(&(qedf->dbg_ctx), QEDF_LOG_DISC,
- "Waiting for all uploads to complete.\n");
+ QEDF_INFO(&qedf->dbg_ctx, QEDF_LOG_DISC,
+ "Waiting for all uploads to complete num_offloads = 0x%x.\n",
+ atomic_read(&qedf->num_offloads));
else
return true;
msleep(500);