From patchwork Wed Dec 27 04:34:23 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: 10133383 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 C54C0605BD for ; Wed, 27 Dec 2017 04:35:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AB3EF2DA63 for ; Wed, 27 Dec 2017 04:35:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AA02C2DA5E; Wed, 27 Dec 2017 04:35:04 +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 454D62DA5C for ; Wed, 27 Dec 2017 04:35:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751641AbdL0EfB (ORCPT ); Tue, 26 Dec 2017 23:35:01 -0500 Received: from mail-by2nam01on0067.outbound.protection.outlook.com ([104.47.34.67]:23244 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751426AbdL0Ee6 (ORCPT ); Tue, 26 Dec 2017 23:34:58 -0500 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=jEdNwaBcG+jRLah2TpyllF8FdHaj7YWCG69ATHZE/pc=; b=NZXoCb3W6padLBslZh0dyEpmPauOGyCS7hqObUA7XBVw3rkqjpNaExW3EoT4MGcZhG5ec5PFMis789reJFWycuIPqp30UQt6DQT+S5Y9dVdgABLLNGOnRPm27Tjl507I2/hp46dMTvPf6voVZbSfRnp5/DmqdxJE52OtrxHynxs= Received: from CY4PR02CA0002.namprd02.prod.outlook.com (10.169.188.12) by CY1PR0201MB1836.namprd02.prod.outlook.com (10.163.55.154) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.366.8; Wed, 27 Dec 2017 04:34:56 +0000 Received: from BL2FFO11FD049.protection.gbl (2a01:111:f400:7c09::182) by CY4PR02CA0002.outlook.office365.com (2603:10b6:903:18::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.366.8 via Frontend Transport; Wed, 27 Dec 2017 04:34:56 +0000 Authentication-Results: spf=pass (sender IP is 208.19.100.21) smtp.mailfrom=microsemi.com; wdc.com; dkim=none (message not signed) header.d=none;wdc.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 BL2FFO11FD049.mail.protection.outlook.com (10.173.161.211) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.345.12 via Frontend Transport; Wed, 27 Dec 2017 04:34:36 +0000 Received: from localhost (10.181.72.13) by avsrvexchhts1.microsemi.net (10.100.34.105) with Microsoft SMTP Server (TLS) id 14.3.361.1; Tue, 26 Dec 2017 20:34:52 -0800 From: Raghava Aditya Renukunta To: , , CC: , , , "Guilherme G . Piccoli" , Bart Van Assche Subject: [PATCH v2 02/30] scsi: aacraid: Do not attempt abort when Fw panicked Date: Tue, 26 Dec 2017 20:34:23 -0800 Message-ID: <20171227043451.27813-3-RaghavaAditya.Renukunta@microsemi.com> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20171227043451.27813-1-RaghavaAditya.Renukunta@microsemi.com> References: <20171227043451.27813-1-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)(39380400002)(396003)(346002)(376002)(39860400002)(2980300002)(438002)(189003)(199004)(53936002)(478600001)(54906003)(2906002)(51416003)(72206003)(76176011)(4326008)(8936002)(1076002)(76506005)(57986006)(50226002)(16586007)(36756003)(8676002)(68736007)(316002)(69596002)(110136005)(305945005)(356003)(47776003)(6666003)(48376002)(50466002)(97736004)(106466001)(81156014)(81166006)(2950100002)(106002)(77096006)(2201001)(104016004)(86362001)(5660300001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0201MB1836; H:avsrvexchhts1.microsemi.net; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD049; 1:ygwlnAyKLZlGeos2F10XObaqzLzZvI1GPaDhNN0v+41eTA0KCscLPPQYk74zVvJLvMWCkv/hnznnQJ00xzyCKY/FMuCwlV6kWPPw/4eoU3PRB4/h5MVfTsa+JUlwRswX X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 26f569a4-c648-490e-c542-08d54ce32310 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(4608076)(2017052603307)(7153060); SRVR:CY1PR0201MB1836; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0201MB1836; 3:4GD8q6fMLjo+0bDd4JKN8Cf8TC7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tAZC8rLo6BsLRBoJibsb8wm8ZD06KYrOv/AoWyZWvdTAPvflT4gRFlPKn+4Zinq0mbIQa6JkAuTDJHlcDjS6jIvr1vLXnNQaTPyIZVNCSLUF48WBIbi4TU6ZEp8kTIdbmUKs9gJSVDEuoFXPLYeSn+u1eVU62Q8V3cTB3PT4SxnOhWSSBKoE6Tny8F0HpLSO51i38snNCZF+VAk65uQfpIndB9q99uCmLQMP4mFz6ccLt794avTV7kFBPoeV5cwBaA8BFv4WuhwbDijKY8AvvxE6ZnXe9sI1AyYtlDadv+6tN+q/Wb30ErDQIf7aMDL5b1fmy42QHolFiVbxmrT65Azw4sAByM2t7d6SgjBA3BIlQ3IhRIFD79MC+FlFqXfBNCxNooOD8jGLdUq06LVSP2bY2/YaTzOwPzwpI4EEj/u3j4nPv2wovnYtItw6E7ZUy//VdhtR6dBjn1kKly1ywSIWP4nwJyWL2wQ8ni/pTITTZsUQUf/f99Elj4HeQxmpBHP21BlVJLKXsy0= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(72170198267865); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93004095)(3231023)(944501075)(6055026)(6041268)(20161123560045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(6072148)(201708071742011); SRVR:CY1PR0201MB1836; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:CY1PR0201MB1836; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0201MB1836; 4:J65VnwR+SqtE1rpkX37kclu3wPYWllN4QNZwOkgtYqCeWkCx5GYZosNf85jKVGqScJR1S/TYRDb9a1CIE1O4euCBP3O7OZscjW7tmP7FJSepmnP0thmypF6QoqlaCdMzc/f/eqjYQTKFr/im5owNuC35KKc74gAA4byAIjcTw+5EDrZUtsTWMKBwUWNPfoclSI/sPjWytLZ7/RFhTFXZ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pptavBdU2cjOF1WcyicWP0jMn8BywHnvetO++XVfd8RywFV3KJg1qn0=; 7:wpEF8xYNp7F8Hm+b+YJxDWaY1H8AekQXOb71xYpYm/hL9nOvLqZhpooy0tNgEKDxRsFPXlhwAGzC8L9/NwIBywh8CDUbaiQ97ObAGdX+0KyZyJfsZGADLWasjS12wjZy9nAwvO2W+zhZJLE44wqF26Bx7r1gKdeNJ11r2zyoJT6XX1KYvXY4sxYyJJe89f5GKodzG0BL3bNeWeARc27eEueaWXqIVtbNNlkpTBqc5QsntyBlC3HGLU9DsA3xptHi SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: microsemi.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Dec 2017 04:34:36.9106 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 26f569a4-c648-490e-c542-08d54ce32310 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: CY1PR0201MB1836 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 Check if the adapter can receive abort requests, before sending aborts Signed-off-by: Raghava Aditya Renukunta --- Changes in V2: None drivers/scsi/aacraid/linit.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/scsi/aacraid/linit.c b/drivers/scsi/aacraid/linit.c index 3677bef..5eb0722 100644 --- a/drivers/scsi/aacraid/linit.c +++ b/drivers/scsi/aacraid/linit.c @@ -683,6 +683,9 @@ static int aac_eh_abort(struct scsi_cmnd* cmd) u32 bus, cid; int ret = FAILED; + if (aac_adapter_check_health(aac)) + return ret; + bus = aac_logical_to_phys(scmd_channel(cmd)); cid = scmd_id(cmd); if (aac->hba_map[bus][cid].devtype == AAC_DEVTYPE_NATIVE_RAW) {