From patchwork Wed May 10 16:39:48 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: 9719265 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 C7E7E60236 for ; Wed, 10 May 2017 06:24:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B939D284D5 for ; Wed, 10 May 2017 06:24:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ADF6228552; Wed, 10 May 2017 06:24:29 +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.0 required=2.0 tests=BAYES_00, DATE_IN_FUTURE_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 351A8284D5 for ; Wed, 10 May 2017 06:24:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751857AbdEJGY1 (ORCPT ); Wed, 10 May 2017 02:24:27 -0400 Received: from mail-bl2nam02on0083.outbound.protection.outlook.com ([104.47.38.83]:60837 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751796AbdEJGYZ (ORCPT ); Wed, 10 May 2017 02:24:25 -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=griFvpj10rzNz2bzpMXL7OUeu9X2WLRdWaBlOlhAk10=; b=iESxX9wiRsv0c4cd41sm+gW6A1GXtbOIQU/J0zZiAdNiCEhyNxP1fnF46DQ3aNmWmS2X54G6HYLk6r8J0tXmx3i5Ad1UBswRa2gPchV6NrvAsY65pGciyHj8aroME8/S5flBMUbVqG8dSSllivXCs9PUITKgsmtUFgTQmSCh0dc= Received: from CY4PR02CA0035.namprd02.prod.outlook.com (10.175.57.149) by DM2PR0201MB0735.namprd02.prod.outlook.com (10.160.94.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1084.16; Wed, 10 May 2017 06:24:20 +0000 Received: from BN1BFFO11FD011.protection.gbl (2a01:111:f400:7c10::1:195) by CY4PR02CA0035.outlook.office365.com (2603:10b6:903:117::21) 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; Wed, 10 May 2017 06:24:20 +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 BN1BFFO11FD011.mail.protection.outlook.com (10.58.144.74) 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; Wed, 10 May 2017 06:24:20 +0000 Received: from localhost (10.181.72.13) by avsrvexchhts1.microsemi.net (10.100.34.105) with Microsoft SMTP Server (TLS) id 14.3.339.0; Tue, 9 May 2017 23:24:06 -0700 From: Raghava Aditya Renukunta To: , , CC: , , , Subject: [PATCH V2 14/19] aacraid: Use correct function to get ctrl health Date: Wed, 10 May 2017 09:39:48 -0700 Message-ID: <1494434393-17261-15-git-send-email-RaghavaAditya.Renukunta@microsemi.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1494434393-17261-1-git-send-email-RaghavaAditya.Renukunta@microsemi.com> References: <1494434393-17261-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)(39850400002)(39410400002)(39450400003)(39400400002)(39860400002)(39840400002)(2980300002)(189002)(199003)(9170700003)(4326008)(47776003)(54906002)(50466002)(356003)(8676002)(81166006)(2906002)(478600001)(6666003)(8936002)(5660300001)(53936002)(104016004)(2950100002)(106466001)(36756003)(2201001)(105586002)(50986999)(86362001)(50226002)(189998001)(305945005)(76506005)(57986006)(77096006)(5003940100001)(76176999)(38730400002)(107886003)(72206003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0201MB0735; H:avsrvexchhts1.microsemi.net; FPR:; SPF:Neutral; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD011; 1:ONgJWJQLQWkO8d9dfxBxaTJkgaSrjtj/wa7fLrYefF7F7VHA8cA2WuGm+DE1Cx4HB1y22ZErPVLUhtZuWqGJHjOuSsObQrhzeQdiIfCWFvorQDg9gbhQmCyubCWSsF6xWyYqjJEON45KCS2rwGB5WYF9BWxAcARvHZ08VrBYg41Sh3+qzvzaz/5N34ZeUGp0T+xHU9j05vySBw5u0g5IRb7OuTNj2xL8rfM0GODbfsUaSBMGebUDz13j7ivQ3e/fVeubjvxXYkF90kZGMgWxaxQDEWFvgYnME6qpMuUt+Y7NVUNGIZ36pUuE+oMUQrs944huTmhqG+h+cXWVmRGsadnCV7pLbtwAHiGrRmmQsJwV/HGxY9SzTFzBmOiey5O+MeC1MOutOJHQO1MCY/132KlXQPMuIZ0gs1Lq67gMTYldyU+9FJN0jn9cfEnCMsQfOsoAkU2ysiOBo5iQtbG6oXjgEgWDI1fV/D2UrignWyRF1ZNpItmW4RRCfMYGeXYaNqgB2uMpOua6FUxE5MZcE4lJw2PRbN5gXLYnFXrHruQFLv7YFHNtxjKl0R6jap5wjYia13P5XLbcTWrfbbMZnT3yQFJxkJOmGswQqFzuQV0= X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 46b8ff91-597d-4413-48ef-08d4976d31aa X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:DM2PR0201MB0735; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0201MB0735; 3:usywAnIYpuzdtySkROxSbMBJLvAzgDPu6tZyGwU9v2jrDAM9Pxx2afUgZfjmQXr+Z7P4mPM8qE2xP5RS83oJdzp44l969f5lDzA6BEcTjwYgRM7dyRsV+ZLTrsFKOe7QA5q0fh6ultvEi8fFtFU6J3l24eVEf9HM7qVj4O4gDMp34vwUc3lRlnkoaIe8EGiTXjDtEChewQ0767v/fsPzl6wiz8+nJwA1XdMVAhDNGyYeWazN9JCk8F6GvwkKzPHhJePKSPhiMIdwDFt7tkPHHcqnDiPbdRcCIsj6X7+tK0Pzr8vtgbfH6fdvdCt2onfgYLnN38dupT/89kITox3Qb01eri2JffN61CA7tXBRJ8Dl2PMCoYonh7/Stw8KkxqC9XcvtDQGVQlSXeLYxHOPh9SRiIOFmBB4PswbIroLDh9o6QzvpTj3AOuAoc/pDk/D6c20ntoDJCMVNTWifb6KH6a7yn8LUY2X1fhDmfE1dnC5SfWjCPGS21Qoo7eeQ7bR X-Microsoft-Exchange-Diagnostics: 1; DM2PR0201MB0735; 25:EPmaBwcvvDfGqbtSi+87brdaNLmvKyjLjARGEazwRROq6wDA8iUtFKz9bMmCpGoqa8aQC5NE5dphhs/WCtTHrUleIFUUJywIR4FM+7aSJHLzfHe3Vif7AWjTxtcWXuBAL0CpzHRw//rCkry5D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9MjhESIN5czeQ6RAsoi0qvuPdpV4i1sBlLSspWmVJ3RrFTY0HcXzu3AaReidbpabRGQ 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)(8121501046)(13015025)(5005006)(13023025)(13024025)(13017025)(13018025)(10201501046)(3002001)(93006095)(93001095)(6055026)(6041248)(20161123558100)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123562025)(20161123555025)(6072148); SRVR:DM2PR0201MB0735; BCL:0; PCL:0; RULEID:; SRVR:DM2PR0201MB0735; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0201MB0735; 4:rn1sGtwwnVXiXY4SNNGTvgXobchTGPlm5FWJjcdS26AJqmUxE/J5MVeRmmWrhUnUrdkKQI4XiTkzlTSa4lybS7VBnNdB8CRLuDvWjWTeXDrYBwustqHomvYaYXrFPVonTIKmE5gbNZbtoda/RBaNLWS7EsKhTZNW2ra0K3c1YB3zGkxWJEC9UrCjEzXVqdRhYD5BEuRhq9IuyKh+IQfqcJSBKUlYTtY9VYWcghiwKWI3fa0SFu8XYbh3vIJuLCnvNrT8lNDAXAgFzxSncbBznZV3tDm5pInq2PrM5gE2m2rNwRqHsTa3QM3SrmIxX0dZIQwYTLG606/GAxfkKQHR2zyxUtbirfwx4jEtEx0MEVFd6M1mnp52osDgig3uNexKexScY1zq+kx8b++q4mTA9pJeVNQROMTHR1htc3QUHwoCm0SZ7GSsYXzzXzZ4KwKWsyk9+rRXxeaopBYHJKt+Pdb+Dw4J0Tem2gQclCz9cVg+Wk9Ly/LN838Al3yHNOwGvxPgWzD/2HCHEsdwwJ9i0XcJP1LglhXGwFAHSy2w3FiOJ37/HhhWFZuVnCV7WWzdDNzwO6c9It7HTsu11KJdtP+SrqhbNRP4SqtTs8kYconbDk0bbfm3Dpiltsd9ibH+wlLcKLi4hQYCiZb+zXpz+GBUtICf4mT+5rm2EKIROCTHKUn+DTp9cxfMQYwIVIepRtGIqOr5blVbwj3i0yQRQA1b9whbu6u799dm1tmFNqtnkPJ4lsDmEmuYPpifsg9K0/GF6+5jzjh3jh95ZlfKIeIecNeRA7GFzsjkKljoHhb9fXHBsX6ty7TkU3wPQqD1uq7w3mDaANs0abexj8IcBUiceoqfS4qf5fzhmdn/MYkQZ97s9tfxVWWp2Z6zVLQwBvCaFl+/A8QC+ww15O94f3EHRGpwhLdvlWCmVn9t 0dvRSAne8/53aMvsSzoK9WKb X-Forefront-PRVS: 03030B9493 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR0201MB0735; 23:Bgi42AGBT8vQw0yEcat06sesXhB8ZUsgMTgsQrr?= =?us-ascii?Q?btm0ExKd2c5gc2Ik/dTvfS9a5+bv9PwB5vmw0JoLQFbJ11T4/CIz9iZKSQKd?= =?us-ascii?Q?O2ESR7CDB7MuRpBhPklSOdP7NdkB//pnrTwLlwHadwj9zBAlLPOWAZbnShDt?= =?us-ascii?Q?ig6x1CO4YJ2519+YpkujYka/MvVs+4zWVH0sOtEX98+zwh7GawVsU+IKfxF8?= =?us-ascii?Q?35KSLzZPw/fFJaeCiJZE0e5ESLjTCKlUJrIGWAVJQG9pEl76DIflsB/zect0?= =?us-ascii?Q?EYMHM0i62tFYalyBuh0PA80yhFwRPO9rrRJi0kpIbwKCebQej3ctF2CWbcF6?= =?us-ascii?Q?7U8L5sIwLmMG9zzy5I74qc2XEqf8qVeIZWqAITEi7pVw1BzcWEdoQDGhzeor?= =?us-ascii?Q?V9QwI5cAQmjyWLtjYdkQT/B6YwA+SuJP7rLTeMjBa/Kl5h9YSpWD8O8c3NuT?= =?us-ascii?Q?b+IOQziAKP+8AhS4ugZ7+gR8HZlRkVzarl2MtdTx1vSUECut3hdoncmW1t9C?= =?us-ascii?Q?oGKR8ACZaTpVDL5Y8FnULRHTMA7Vz7Hxln1iCE8mPrei3NAgzy2/V+QgjDhA?= =?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oFisepBJsgjQNinATAYntoaJKQpUyW+kjpQ7dgFOPINgl6yNMjwlpI9HQDN3rzAu9Hnov5lxECrPpPBA/KFQmSp2nvuKPptCxM/Tf34aSFM/6RtrFHd4CURXJj6/Tj6HL1tSiFqCQw/tx1P6LbxxBkiBAyk0k+2Nzkk7dm0Iffon74=; 5:AdEw4sW4h634CG14rXZi6cInoAKoJjhkAshosDIpa9Ouv7n4rtBTWo1jD966miu5/4CidSig94G7t3r1RUu4gCDsbC+v1VehVJE10At7/pKI0x1adCv8fasPm6Ln1a6B8sEEXYftPddMocWQPOa5zw==; 24:U26FO/MHecUmTpJ5/GFUNe55qh0Ng83gHvVYDiCM/4T8F8qHtmMsjy1KCzQswwucG4NoQNy7jq2x2UMeeINKAFm2Guni4Iq6goZjQAdQbp4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR0201MB0735; 7:aWkpM6GfEECjzzMDAqNYpNFytQx0OXcg9kfMspfZxIK3Z9t/w5Ua6K8kH0Za39Ht0vCmolYJeNBLMpTIIvyxMwfrtxIO3Es7djGnV0Sy/fnamAlqbBsGCwPiAEaN4oQKiS4sA7dK/Wj3p7PEoylTmrPmhj3HNiofbWWM+Bz5eMO1FDKWbuXAXeMiGS8/X8BNTzHJ06IYuWuflM2PGLfv0BU6gbwNZFiNipDfh2AjYKHqySBH+yHAGE3guJvbJFG/OaKikpsWkh06bSVfNaOr5qTl1gxpbgAD4/0EFG5Zcjwa2zeAxhnck5ez247WMZZC+i3pCyiSjgJvmqW/978RAA== X-OriginatorOrg: microsemi.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 May 2017 06:24:20.3279 (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: DM2PR0201MB0735 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 Reviewed-by: David Carroll --- Changes in V2: None 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