From patchwork Fri Oct 20 21:51:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Don Brace X-Patchwork-Id: 10021035 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B711860234 for ; Fri, 20 Oct 2017 21:52:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A8FD428F67 for ; Fri, 20 Oct 2017 21:52:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9D72928F6D; Fri, 20 Oct 2017 21:52:40 +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=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 3AEA328F67 for ; Fri, 20 Oct 2017 21:52:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753435AbdJTVwj (ORCPT ); Fri, 20 Oct 2017 17:52:39 -0400 Received: from mail-dm3nam03on0071.outbound.protection.outlook.com ([104.47.41.71]:52096 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753533AbdJTVwg (ORCPT ); Fri, 20 Oct 2017 17:52:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mscc365.onmicrosoft.com; s=selector1-microsemi-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Gav+PlLxGSfBe3X3+WCGqybcIs3tGFS6v60uW3B2k5Y=; b=Aw9mbkZjnT1tOvFQXbBYKHvNHN9O/1ryEtHt9bFN3OSzhkFu4TwPl3pyTBU9ziEvNddr69I4a22fUZHWB32R4oRrxXxZAYnDcIn0DGUjki3Rt3kArfWnIlmOmVuWUeQbvmj67Ci351j3vPcWNVO52ds5XkBhjWzQivNjBhov+68= Received: from MWHPR02CA0001.namprd02.prod.outlook.com (2603:10b6:300:4b::11) by CO1PR02MB142.namprd02.prod.outlook.com (2a01:111:e400:101e::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Fri, 20 Oct 2017 21:52:34 +0000 Received: from BY2FFO11FD048.protection.gbl (2a01:111:f400:7c0c::137) by MWHPR02CA0001.outlook.office365.com (2603:10b6:300:4b::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.77.21 via Frontend Transport; Fri, 20 Oct 2017 21:52:33 +0000 Authentication-Results: spf=pass (sender IP is 208.19.100.21) smtp.mailfrom=microsemi.com; suse.com; dkim=none (message not signed) header.d=none;suse.com; dmarc=bestguesspass action=none header.from=microsemi.com; Received-SPF: Pass (protection.outlook.com: domain of microsemi.com designates 208.19.100.21 as permitted sender) receiver=protection.outlook.com; client-ip=208.19.100.21; helo=avsrvexchhts1.microsemi.net; Received: from avsrvexchhts1.microsemi.net (208.19.100.21) by BY2FFO11FD048.mail.protection.outlook.com (10.1.15.176) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.77.10 via Frontend Transport; Fri, 20 Oct 2017 21:52:33 +0000 Received: from [127.0.1.1] (10.238.32.34) by avsrvexchhts1.microsemi.net (10.100.34.105) with Microsoft SMTP Server id 14.3.361.1; Fri, 20 Oct 2017 14:51:59 -0700 Subject: [PATCH 09/12] hpsa: reduce warning messages on device removal From: Don Brace To: , , , , , , , , , , CC: Date: Fri, 20 Oct 2017 16:51:57 -0500 Message-ID: <150853631782.28275.13524439725162388346.stgit@brunhilda> In-Reply-To: <150853443786.28275.17878578984391668998.stgit@brunhilda> References: <150853443786.28275.17878578984391668998.stgit@brunhilda> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:208.19.100.21; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916004)(376002)(39860400002)(346002)(2980300002)(438002)(189002)(199003)(5660300001)(81166006)(69596002)(106002)(106466001)(83506002)(2906002)(77096006)(356003)(230700001)(189998001)(23676002)(4326008)(316002)(68736007)(86362001)(81156014)(103116003)(110136005)(54356999)(305945005)(8676002)(47776003)(2950100002)(50986999)(9686003)(53936002)(33716001)(58126008)(104016004)(8936002)(33646002)(76176999)(2201001)(478600001)(50466002)(16576012)(97736004)(921003)(2101003)(83996005)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:CO1PR02MB142; H:avsrvexchhts1.microsemi.net; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD048; 1:iq/KDswiVDYRfO4TMME/62uL7hE2kbLE4jqJEPgLx7jy2nkjrb1vE5o6W7QIGmnG0CB3gu7uKZxJUPgWRKIFdjZiKSV+HMv9XEZErvyf1Gt2AddUaH4odv4ymIGMqTIQ X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4870d3ed-c400-4a79-31f7-08d51804dea8 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(4534020)(4602075)(4627075)(201703031133081)(201702281549075)(2017052603199); SRVR:CO1PR02MB142; X-Microsoft-Exchange-Diagnostics: 1; CO1PR02MB142; 3:rbC9tNuNOczn3heiXkKatP56hIH1RY+dzchP4sXQ3xPFKTw/B2ekvTK4K1Hx2GlIo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pRHyt38p+bpt2l5IHYgo2r3wOkJI6lPpz/rcydNnLUciPvDCXKtYslDGbEy+2o7oAysjcFXcmrN4Pzjchkblu61PYwzDePZJzWlyKdR4ift+DFm9TnrmWdTJW6tuP1gUrRCg3jtZKnOMgDrUSX3+E3M+8Ypye6RIRqcE9t6eM6HA4De83SuIeHmousyJ3n8za2q/Opn4a4ifaDk5ysLmeZ1QKLjFQpG5Uw6+becCFPuCAfitSoFmGprO9ZHFVPaHWlNkQraZyppI9ach0Wn5Cp/JlgRZMg3/A1E+9m0IanTNGeA8/Z5Bzx1zS2jBQqzMjnAhCyM70UPf3WsmkQqt9EXu5cfT3GB3MYC0VmE1EDp+3knu7WawX0wnqrL X-Exchange-Antispam-Report-Test: UriScan:(72170198267865); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(93006095)(93004095)(10201501046)(3002001)(100000703101)(100105400095)(3231020)(6055026)(6041248)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123560025)(20161123555025)(20161123562025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CO1PR02MB142; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CO1PR02MB142; X-Microsoft-Exchange-Diagnostics: 1; CO1PR02MB142; 4:39nhxxqKyE/F/4O6iQWaN5cpVhUV1vsv+Ni8xhl1ETaOeAb/fNebKWQ9aaBaHgo+Gg7/bmm1kVTZY85oilPtcz0EaTKiMPxEMvKpHnJUjLxNpD39cNJJT73NNc2A1Pyjtv5c2EDxvisJKfC0VizlP/HA+G9QkY7ygqmyplTZmdSiZ6nlmJMEbKyq6c6Qqoz0U+cZhAqa0/D1wr/Ih4Ejlbp0r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A5JmVhx9E+lgxZo3qKOzfQkV74xlmVsBBaNaw0nHFOe/eaTwRJPRezBx4bMutkH5hExtdcK2zGLb7TvfbtdD8TcFOZUoHx6VU2BNAVP36gK1YR3amRHOOcWbPwxtHtZko7HN4PneNIGP7/GZH8i3EzImIHPiN2fQDaldqdvjkZjLslVuf0saE0dN3mF2cq8PIEbw9JDKtPxvDfEWI+usOuQZUUfXfq0rnfrP02nfSMJUCZwCQWDzpLg01akicCcl33AN3QQF1A3PkW8cMy/yxt/xtpczFkM1NeTlpZn7HnteF+JsQ6Ak0oCtVT0YvQGEmQU41WF746rIwIRv1A==; 5:gRmB5DmDO4dQMvVnWkS73NpUqpIAkkNcORBay3oU9Sgh3+Y40sGwl9jd1af0A8LX5DhULzG0KbTn5hK4Yny6DTRYcyAh6iPIm40+1JWBSo4gKtFujBqvpJdtjwAYiYchCYFDfezmwe941OCMcE4Gog==; 24:uSX0Frwhll55vFPVNe0ZShpJaFwh5BHGSiNH7ezPQ1XNZw7TT+gHbyReKQs+I8DxDnBQT3rYgyZiG9sOslJdKlmYFSXUanVquJDFF8+GWxw=; 7:KSRucJh/Q/mvKuP+cbVvg03vvQQKkoZibwbgzpiYcbjuJ8lvgSJ60jnPjXdcyDanQh7LuJn85qDoU4rOV63g6vfXN6WlD1x7oaC5wVd0IlTXwxJ8kTt9fhQ01GKlP12xEBsvfUZA//A32qHCrRSFpIYoj2aTHaWe0ZrZ4YCLmu/rUrrXAbDBVBJn1Ra5u5U/JreVuHT6UgeEicIWyT8YHncBGSyuknOupdhTsijyF/E= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: microsemi.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Oct 2017 21:52:33.4953 (UTC) X-MS-Exchange-CrossTenant-Id: f267a5c8-86d8-4cc9-af71-1fd2c67c8fad X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f267a5c8-86d8-4cc9-af71-1fd2c67c8fad; Ip=[208.19.100.21]; Helo=[avsrvexchhts1.microsemi.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR02MB142 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Reviewed-by: Scott Benesh Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 27a1aca..228d744 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c @@ -1865,11 +1865,13 @@ static void hpsa_wait_for_outstanding_commands_for_dev(struct ctlr_info *h, break; if (++waits > 20) break; + msleep(1000); + } + + if (waits > 20) dev_warn(&h->pdev->dev, "%s: removing device with %d outstanding commands!\n", __func__, cmds); - msleep(1000); - } } static void hpsa_remove_device(struct ctlr_info *h,