Message ID | 20190422054501.3224-11-skashyap@marvell.com (mailing list archive) |
---|---|
State | Mainlined |
Commit | 7fa4142d8bdc7a6255844ba2edfcca4f28805ab4 |
Headers | show
Return-Path: <linux-scsi-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D4A1B1515 for <patchwork-linux-scsi@patchwork.kernel.org>; Mon, 22 Apr 2019 05:45:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C6FC128668 for <patchwork-linux-scsi@patchwork.kernel.org>; Mon, 22 Apr 2019 05:45:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BB9992866D; Mon, 22 Apr 2019 05:45:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 72A4528668 for <patchwork-linux-scsi@patchwork.kernel.org>; Mon, 22 Apr 2019 05:45:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726754AbfDVFpt (ORCPT <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); Mon, 22 Apr 2019 01:45:49 -0400 Received: from mail-eopbgr800071.outbound.protection.outlook.com ([40.107.80.71]:28864 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726443AbfDVFpt (ORCPT <rfc822;linux-scsi@vger.kernel.org>); Mon, 22 Apr 2019 01:45:49 -0400 Received: from DM6PR07CA0027.namprd07.prod.outlook.com (2603:10b6:5:94::40) by SN1PR07MB2175.namprd07.prod.outlook.com (2a01:111:e400:c455::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1813.12; Mon, 22 Apr 2019 05:45:46 +0000 Received: from DM3NAM05FT059.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e51::202) by DM6PR07CA0027.outlook.office365.com (2603:10b6:5:94::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1771.16 via Frontend Transport; Mon, 22 Apr 2019 05:45:46 +0000 Authentication-Results: spf=fail (sender IP is 199.233.58.38) smtp.mailfrom=marvell.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=fail action=none header.from=marvell.com; Received-SPF: Fail (protection.outlook.com: domain of marvell.com does not designate 199.233.58.38 as permitted sender) receiver=protection.outlook.com; client-ip=199.233.58.38; helo=CAEXCH02.caveonetworks.com; Received: from CAEXCH02.caveonetworks.com (199.233.58.38) by DM3NAM05FT059.mail.protection.outlook.com (10.152.98.176) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA) id 15.20.1792.7 via Frontend Transport; Mon, 22 Apr 2019 05:45:46 +0000 Received: from dut1171.mv.qlogic.com (10.112.88.18) by CAEXCH02.caveonetworks.com (10.67.98.110) with Microsoft SMTP Server (TLS) id 14.2.347.0; Sun, 21 Apr 2019 22:45:33 -0700 Received: from dut1171.mv.qlogic.com (localhost [127.0.0.1]) by dut1171.mv.qlogic.com (8.14.7/8.14.7) with ESMTP id x3M5jXUf003299; Sun, 21 Apr 2019 22:45:33 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id x3M5jX5j003298; Sun, 21 Apr 2019 22:45:33 -0700 From: Saurav Kashyap <skashyap@marvell.com> To: <martin.petersen@oracle.com> CC: <QLogic-Storage-Upstream@cavium.com>, <linux-scsi@vger.kernel.org> Subject: [PATCH 10/12] qedf: Print fcport information on wait for upload timeout. Date: Sun, 21 Apr 2019 22:44:59 -0700 Message-ID: <20190422054501.3224-11-skashyap@marvell.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20190422054501.3224-1-skashyap@marvell.com> References: <20190422054501.3224-1-skashyap@marvell.com> MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-Matching-Connectors: 132003855464031095;(abac79dc-c90b-41ba-8033-08d666125e47);(abac79dc-c90b-41ba-8033-08d666125e47) X-Forefront-Antispam-Report: CIP:199.233.58.38;IPV:CAL;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(376002)(346002)(39860400002)(136003)(396003)(2980300002)(1110001)(339900001)(199004)(189003)(50466002)(48376002)(8936002)(2616005)(70206006)(4744005)(51416003)(1076003)(356004)(26005)(6666004)(76130400001)(11346002)(47776003)(70586007)(446003)(126002)(336012)(53936002)(476003)(8676002)(97736004)(81156014)(81166006)(50226002)(486006)(16586007)(4326008)(5660300002)(105606002)(6862004)(69596002)(2351001)(80596001)(36906005)(76176011)(2906002)(54906003)(42186006)(85426001)(36756003)(305945005)(316002)(87636003)(86362001)(26826003)(498600001)(68736007);DIR:OUT;SFP:1101;SCL:1;SRVR:SN1PR07MB2175;H:CAEXCH02.caveonetworks.com;FPR:;SPF:Fail;LANG:en;PTR:InfoDomainNonexistent;A:1;MX:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d548cc00-b0eb-47bc-ee56-08d6c6e5c460 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(5600141)(711020)(4605104)(2017052603328);SRVR:SN1PR07MB2175; X-MS-TrafficTypeDiagnostic: SN1PR07MB2175: X-Microsoft-Antispam-PRVS: <SN1PR07MB21759559970C735D8485D67AD2220@SN1PR07MB2175.namprd07.prod.outlook.com> X-Forefront-PRVS: 00159D1518 X-Microsoft-Antispam-Message-Info: 4B60pDwmS7UeuwXBJ3bJu8HpEnA14PyIlUMjvdBqme2L6LbPd2/wPkA49Bx5QPhOsH9pZtLQEi2WTpeOeL5WshB/pSmHASIVsTwqCYuxld2qxdXLnKNDqx0jFiUkOeW+cuQF9WR+9V/sJ9JSYtubAfFs755yU/9YZ5lNjNqZIZGRLx60Xi4b3eDkW2v/JmgTdwlgcRD58Ps+4UYf1d/JBsu48YQu2lc3rm1aSuCK3IGRD6BtEh/Yb7lG6ctrwKt4AC6EExaEFGfyxcoQkrNOVpgSFyY6d1LjhuJ87KUO9T6DUhiLG/cFAAVA6C2TRcygZUmRLgQJ+hT5HwLnQmFrvLyqzJRNZexhLntT3X2/FSAQAPSZFuh5INOroBYhltkCsQOU306fCF2Q359kat4JHg62AFgOWkj5HD420PpkHYc= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Apr 2019 05:45:46.0618 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d548cc00-b0eb-47bc-ee56-08d6c6e5c460 X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[199.233.58.38];Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR07MB2175 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: <linux-scsi.vger.kernel.org> X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
qedf: Changes to log messages
|
expand
|
diff --git a/drivers/scsi/qedf/qedf_main.c b/drivers/scsi/qedf/qedf_main.c index 1de2b18..ffe536e 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);
- Log fcport for which upload failed. Signed-off-by: Saurav Kashyap <skashyap@marvell.com> --- drivers/scsi/qedf/qedf_main.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)