From patchwork Sun May 7 13:34:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raghava Aditya Renukunta X-Patchwork-Id: 9715421 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 2170A602BD for ; Sun, 7 May 2017 21:46:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1335A26530 for ; Sun, 7 May 2017 21:46:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 07495268AE; Sun, 7 May 2017 21:46:01 +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=-5.4 required=2.0 tests=BAYES_00, DATE_IN_PAST_06_12, 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 7A16626530 for ; Sun, 7 May 2017 21:46:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753892AbdEGVp5 (ORCPT ); Sun, 7 May 2017 17:45:57 -0400 Received: from mail-bl2nam02on0047.outbound.protection.outlook.com ([104.47.38.47]:43008 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753341AbdEGVpy (ORCPT ); Sun, 7 May 2017 17:45:54 -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=1683eSylhlHkE9C8CtBLBVshCVjBhXp7eEKTqmFlToE=; b=WWIKfUuQD6yW29stRtxp/Vg3x01YPu82wSUJ+SXKRy8F5zurbmy5JYydtQXMANHPBDU7eXJA0+5zJAXmeQoOZZVTHRJWeJKBlCmvnDVHCoBBj9P6JUwbPaH9lPi9zXSvD5CEI4K2ezcFE6EQtm372lZBO8u15hOP47c1XR3613o= Received: from BY2PR02CA0088.namprd02.prod.outlook.com (10.242.32.46) by BY2PR0201MB1893.namprd02.prod.outlook.com (10.163.75.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1075.11; Sun, 7 May 2017 03:18:57 +0000 Received: from BL2FFO11FD056.protection.gbl (2a01:111:f400:7c09::115) by BY2PR02CA0088.outlook.office365.com (2a01:111:e400:2c2a::46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1075.11 via Frontend Transport; Sun, 7 May 2017 03:18:57 +0000 Authentication-Results: spf=neutral (sender IP is 208.19.100.21) smtp.mailfrom=microsemi.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=microsemi.com; Received-SPF: Neutral (protection.outlook.com: 208.19.100.21 is neither permitted nor denied by domain of microsemi.com) Received: from avsrvexchhts1.microsemi.net (208.19.100.21) by BL2FFO11FD056.mail.protection.outlook.com (10.173.161.184) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.1047.9 via Frontend Transport; Sun, 7 May 2017 03:18:56 +0000 Received: from localhost (10.181.72.194) by avsrvexchhts1.microsemi.net (10.100.34.105) with Microsoft SMTP Server (TLS) id 14.3.339.0; Sat, 6 May 2017 20:18:37 -0700 From: Raghava Aditya Renukunta To: , , CC: , , , Subject: [PATCH 14/19] aacraid: Use correct function to get ctrl health Date: Sun, 7 May 2017 06:34:19 -0700 Message-ID: <1494164064-17715-15-git-send-email-RaghavaAditya.Renukunta@microsemi.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1494164064-17715-1-git-send-email-RaghavaAditya.Renukunta@microsemi.com> References: <1494164064-17715-1-git-send-email-RaghavaAditya.Renukunta@microsemi.com> 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)(39410400002)(39850400002)(39400400002)(39450400003)(39860400002)(39840400002)(2980300002)(199003)(189002)(9170700003)(104016004)(53936002)(36756003)(107886003)(38730400002)(305945005)(54906002)(50466002)(106466001)(48376002)(105586002)(6666003)(2950100002)(2906002)(47776003)(356003)(77096006)(8676002)(81166006)(50226002)(189998001)(8936002)(2201001)(86362001)(5660300001)(478600001)(57986006)(76506005)(5003940100001)(4326008)(50986999)(76176999); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0201MB1893; H:avsrvexchhts1.microsemi.net; FPR:; SPF:Neutral; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD056; 1:DsL7rO0JPTXsC5Z3fwRDBffVUdPwaeBl0F4Wq1YoLKxn56wgoocjbUBayGTHAVR0y/Z3Ikp3Xri/oNevcccj+TUJc25QXBdyv/oNjDSO4RlUizRM475msg2Jrxjp/4WVnca2MRhV8AqZcHK9yZuGdAgLSv78z28nW0jA1QM267wUGdYzsBBLyL33zvjpL6+mjyafajbeWo381jfGt+bmnHu/flb4VdZuZkLLgm/6Yzu3VK2um/LqtisCxjnjS+bi72wzuSnWgAqTAGqww+SyVcN05+sGx9ZfW+qQDGmaSvMb1NMbaR6XFjUXnm8/unL/NsWhfgVMfOGYVKxz0hJ87wpA29ojqSXPJneou5Ese+P7YxMTtdCghPJldEcCvGPNdRO1lCObiWC6YGlgmJQ48iyzIuai31LoAnV2s0nlOuK1E+D1Uo3qyueDNM0EwcbcO8fIJSczAw75vnj+jA1i/2gNcsYN6R/qCCCAl3Hx8FULfXAvdhGZy9aP67e+Ki7dVaW2VQErJNYzcKYGm/Qn38nt9Ty6FhNvr1o+sXNoeCMkqFHa9SUHLghgP+MlJPpaq9KtCOt70mSKcE68G4/aU/RbzZeJaFrJ8AEfp0dB14w= X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9c473c6d-da46-4ee5-871a-08d494f7cc3a X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:BY2PR0201MB1893; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0201MB1893; 3:YgxLw1kAPWFFGipBQ25T69vKO8IXtfr7K01tNIzFDmzjrRn8nsVPPpADtsLuHTnAzRyjxoLLIenNfPwMgPH12DgJKbBKBRMnyLLBmnlRWo9iOH62OU0NyElnQnkLbZUcxG50E+0UnpckQTBETm4HXum29Zrs+3z6yJd0XoTU756Csz8TufopaUb+07yYs+vykzbPyLwLxBLhhbaNJQLl0z+XvYOBjNUBFPfGqFCV8/EJvnvLXSQ+VxRZGB2GgbR2UElAcJAROF06bHNw0GKvUDwJqNEzw2JaYV8uDkOE56nGYH0Ljb38BMEj7uJv6yrXd4PNtStO8E6VMXVZM0ObB5Fvlf51Q5s4feWGUAmup+mcfkEcmSqwIbw+JX5VKIOyYVaX2vDj5YMxWBKi4r/RiBFWuC4SpvQrb85Z11XCFG1d9/Zcs6rXCUI/n5UvSorTqI0jmT7nQwFCbTM6lyCeTiWEAGpv7245h+glyHvinCTjkzX4De8XXG+zIkFzPLhs X-Microsoft-Exchange-Diagnostics: 1; BY2PR0201MB1893; 25:2eClHCrlLKys/jyMnwmO3kFf7CO2XprB7WUwRaEVcN7JAKLcwf1jnorDU4xWyFcd2/jeCa7GTYwLXGEbHXbjM2nZctonncvbpGfoN6b2cGSv3TZEML/yRon8aWMs9tPCzc7OPLUFy73zgHMJO0qIDjQSZqJAiKNS0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9ysQSwijiLo3KrJuioDPhiBclRaL1puHGorwHuYOlzYxYFAS6lDNzKfuyDBqClK4v8P X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(72170198267865); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(13024025)(13023025)(13018025)(8121501046)(13017025)(5005006)(13015025)(93006095)(93001095)(10201501046)(3002001)(6055026)(6041248)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123555025)(20161123562025)(20161123564025)(6072148); SRVR:BY2PR0201MB1893; BCL:0; PCL:0; RULEID:; SRVR:BY2PR0201MB1893; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0201MB1893; 4:vBxkD0YEjC/5vYTlWwHginCfa5j/L2vxneDs1eYYnQxlG9y6mj0l6QRNLh4OarGsxk25OJkSfN4OWnybWCbht3Gu7QTuVe2pCi6roJtMOS6TBGQY1EYEq04DnlYL8hVNzW8hwaVe5jcDH/qu0ziOnT9ktgrz8JImFCQOZ9CoAoI7CKRSukKC+kp7apktDgwn4+EzPFW9Pb9Py3g5qs4HdiA9piZX8ikizx/M9jsBlT4yQlxmfLbq2dmO0ZfpgTJh7uR+MJWE0ZajEkrAtUaFa3W63OBhNv9wi3k8/Wf00zx0ukp2D8V6TqcUD9bf839qzJmkcjWHFitQpC1J7X+EBaw44624/W/kqRCYqLClrdn5PfzeOarQ47Mdaim/okGRJ714p3aRDfQMVz7TQZyeOvKFd1LM7Q9bNCQj1og+zOSpVvDtDjcSHTPpvXKnCH0Uxex5zQFF6KMlmByqfVquO0h2g8aVWDhQr5BZmnNtuHAU9A0b6Iv8gInt9DmvH9aKAW1x8mmeQ6exI1oj2xiEF3FvmTwRXmwXad2he3C/WlKjYzJFDJ/SDeiE8Z4xw545Kj34Jx0gPuc7bX21RSU2gv1Xe0yhOwsmzWFKRB+p7ZSnN3psgcAFt5xk7V79KPMVzLGYkLVe9lWQxwmQImhHag/Ij8ObOMAPGwjxgwREnzILqf1S2p1NJUC9bt/xDuYNmiNd+w3ELX+yAQAjOnq8KXMpSZkXgSyTnw0skSwC/Y+bKlldJvce0X0BDYBv+CvPy5kCp8T2KWPoPBShsVX9tYJA7639oeJ9O2MX2Ivwawomu6es0yWrotAllB429P2MriGi5nfI0fM/ESf/C7oE9HrVjFAN4VSkOI8KurwooE3QCkhVz4SIeQZIUGemaZuCttMp1cOncaCTV8cGgQWfk/LWL2NB1DNUObsgmbJD i3C4KxzHjEDz3uZ3SLhMOnsd X-Forefront-PRVS: 03008837BD X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR0201MB1893; 23:Eza0XE/0+eL6Bu22T14FrskDomSi7gT4KtXjsxp?= =?us-ascii?Q?ABnQED508FLV+BgJFQ/mUrwkW6yhXBWI2ybRzfjU7lS7wtl5mSgYJVMOnSA8?= =?us-ascii?Q?4kR7oDHiSetEx2IT/sSswZR6SUyl3si1CmDI8n4W/1gzDr5fFViHa0IthQp2?= =?us-ascii?Q?u3oTmI7kt4duEGg2JHg0KGytYM26VKvYjRqTvdDnWghh0nx9wbOATK6b8LX9?= =?us-ascii?Q?vY4uCt9gXhVLRG47okndHCkeRm6LnEHyLbGVe3f0RGO+6HJ9id4IjVwmeHfY?= =?us-ascii?Q?mPa+JsbTjvrogR2oZTVYyIyXfEA93HcwhgrMxZ9cO0oHAqZVTk4nDpZoc83t?= =?us-ascii?Q?/AwIANMhnMRCMrJfLG5Q6TCXOWD/qLP5nynrmCIrYuiCuD8Fuy6m+FZwdHRH?= =?us-ascii?Q?kYu7FUaaniZgVbaS0VygsrNy8ErWPjaAwYENUCOLEnmHJ/eg0fRlzn7fzSm2?= =?us-ascii?Q?fH7l3ZhqS7t3Yt3xdkP41xXMtQPTQuLvwFp7Be2OYcADFuahPB4jekqwF+wh?= =?us-ascii?Q?tn6RX1vxAVtb2RA6ObpCVnuFHSN0I9vhr7QJXvmICSDqXywgauH7qJShrX+Z?= =?us-ascii?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gCDs7u7BSQ5W+PTW5EW4x6KWF2ZM5aJPWXAMiCNNAXxtb77p8wLwApehhyP1S0GdmX/wLkIQ6nCWpqqhK++78ClXFHJ/3oVTKNLW51uSoeeshkrl5vvspSfpJuaNALqqn6OzXnPiafLgv8zSlWDDBLoiLzK+LWjR5GGm7Io4hP89AcfH8Y=; 5:da13R2TpZTGTynHx26l41X7pZBMBK96BONdj+l+8xb6/MiNroizzch54D2EpH3VznGA6Ixaf9GZoc+YmOeghhy46Tpq/UHjCUINBEkhuQfG38tWcJ2roFhzuGOj6wjDyMscT1yjoZZZJeYGS/E4YFg==; 24:RIdWN6M0hbliAk22kbwQGzO0cZoxOpmW9v3D0jKE+Cl8WRjEF/IOdNgqpofXTBipI33+Fr1V8vVRU1LEZpV2JOMp8gboiw4TOmwAhbTPGmA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY2PR0201MB1893; 7:BpiRzW1fV5uYPUld/+6Xs3y2H+ZXJlfpcQNM8P0hQwstyCMk83s+4XRqxtffDkMoEF2lH4uG+btPda06Iw5v+Z0IxuxsrSgzvy2HKOJ7SlwmdRxt/31Qe/g78Z5MypWV0VbDfKhfqD6kmpYQ74vrV3gTNDxxiOFCeCjpUOllys1jqWxTuKR8gSmBp2Za7pS8DL51TRoiZHoK83imJ7F4eNL0OrF336fps1ZYbvSzsOOBCy+qGPOY/6YRFdeLy5b0Ic9JSeIW/PhzJZN8ULe5xmvA07Qzq9yjPt2uxg42wUBxBmzvR0Qb1is76+ZptH9wHaLWRbLRRaMzyymvYt7pfA== X-OriginatorOrg: microsemi.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 May 2017 03:18:56.7027 (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: BY2PR0201MB1893 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 The command thread checks the ctrl health periodically before sending updates to the controller. The function that it uses is aac_check_health which does more than get the health status. Signed-off-by: Raghava Aditya Renukunta --- drivers/scsi/aacraid/commsup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/aacraid/commsup.c b/drivers/scsi/aacraid/commsup.c index 3299012..f26543a 100644 --- a/drivers/scsi/aacraid/commsup.c +++ b/drivers/scsi/aacraid/commsup.c @@ -2476,7 +2476,7 @@ int aac_command_thread(void *data) if ((time_before(next_check_jiffies,next_jiffies)) && ((difference = next_check_jiffies - jiffies) <= 0)) { next_check_jiffies = next_jiffies; - if (aac_check_health(dev) == 0) { + if (aac_adapter_check_health(dev) == 0) { difference = ((long)(unsigned)check_interval) * HZ; next_check_jiffies = jiffies + difference; @@ -2489,7 +2489,7 @@ int aac_command_thread(void *data) int ret; /* Don't even try to talk to adapter if its sick */ - ret = aac_check_health(dev); + ret = aac_adapter_check_health(dev); if (ret || !dev->queues) break; next_check_jiffies = jiffies