Message ID | 20171221173420.8213-3-RaghavaAditya.Renukunta@microsemi.com (mailing list archive) |
---|---|
State | Superseded |
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.web.codeaurora.org (Postfix) with ESMTP id 742F06056F for <patchwork-linux-scsi@patchwork.kernel.org>; Thu, 21 Dec 2017 17:35:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6274229CE3 for <patchwork-linux-scsi@patchwork.kernel.org>; Thu, 21 Dec 2017 17:35:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5722D29D1B; Thu, 21 Dec 2017 17:35: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=-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 EDDFE29D15 for <patchwork-linux-scsi@patchwork.kernel.org>; Thu, 21 Dec 2017 17:35:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754664AbdLURfA (ORCPT <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); Thu, 21 Dec 2017 12:35:00 -0500 Received: from mail-bl2nam02on0057.outbound.protection.outlook.com ([104.47.38.57]:39180 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753535AbdLURec (ORCPT <rfc822;linux-scsi@vger.kernel.org>); Thu, 21 Dec 2017 12:34:32 -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=EDgiiBSh/KsqvVIBssOqBfkRWSw7dlZZn57U0g0VK3o=; b=BuaMwIyu4MdSLwn4uQ4WaWyVFr3hfa8m8fyzaUyNV95BayVFdit9Ftf+zWY0BP1KPdF+iqDGRAGr392ElUxWtAUSnx2LiefMns7ZDznI8vqxzvywmv1w3e9i8dRW2NjH7hkl4/M9+Vn994Kf7lyEpGStnXNw6w54lSu+k+vkx4E= Received: from MWHPR0201CA0061.namprd02.prod.outlook.com (2603:10b6:301:73::38) by CO1PR02MB144.namprd02.prod.outlook.com (2a01:111:e400:101e::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.323.15; Thu, 21 Dec 2017 17:34:29 +0000 Received: from BN1BFFO11FD012.protection.gbl (2a01:111:f400:7c10::1:183) by MWHPR0201CA0061.outlook.office365.com (2603:10b6:301:73::38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.345.14 via Frontend Transport; Thu, 21 Dec 2017 17:34:29 +0000 Authentication-Results: spf=pass (sender IP is 208.19.100.21) smtp.mailfrom=microsemi.com; linux.vnet.ibm.com; dkim=none (message not signed) header.d=none; linux.vnet.ibm.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 BN1BFFO11FD012.mail.protection.outlook.com (10.58.144.75) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.302.6 via Frontend Transport; Thu, 21 Dec 2017 17:34:14 +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; Thu, 21 Dec 2017 09:34:20 -0800 From: Raghava Aditya Renukunta <RaghavaAditya.Renukunta@microsemi.com> To: <jejb@linux.vnet.ibm.com>, <martin.petersen@oracle.com>, <linux-scsi@vger.kernel.org> CC: <Scott.Benesh@microsemi.com>, <aacraid@microsemi.com>, <tom.white@microsemi.com>, "Guilherme G . Piccoli" <gpiccoli@linux.vnet.ibm.com> Subject: [PATCH 02/29] scsi: aacraid: Do not attempt abort when Fw panicked Date: Thu, 21 Dec 2017 09:33:53 -0800 Message-ID: <20171221173420.8213-3-RaghavaAditya.Renukunta@microsemi.com> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20171221173420.8213-1-RaghavaAditya.Renukunta@microsemi.com> References: <20171221173420.8213-1-RaghavaAditya.Renukunta@microsemi.com> MIME-Version: 1.0 Content-Type: text/plain 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)(376002)(346002)(396003)(39860400002)(39380400002)(2980300002)(438002)(189003)(199004)(305945005)(76506005)(97736004)(48376002)(76176011)(36756003)(356003)(2950100002)(81166006)(81156014)(6666003)(51416003)(68736007)(5660300001)(8676002)(50226002)(69596002)(8936002)(72206003)(47776003)(86362001)(104016004)(2201001)(478600001)(53936002)(106002)(57986006)(4326008)(2906002)(50466002)(16586007)(1076002)(54906003)(106466001)(316002)(110136005)(77096006); DIR:OUT; SFP:1101; SCL:1; SRVR:CO1PR02MB144; H:avsrvexchhts1.microsemi.net; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD012; 1:vWYHRu2nGB015oOffYzWroOF2PPaQwp+HOwseqVa7O9pjPuHsJRHmXxrjR5XO58zJkyiv4LeNCXFey1uxsCYcldvD1XIGvkzLeLoj9qIf5MA7nzzXyKBPsZJrNI+eOim X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 93c65af4-1a52-432a-a608-08d548990e62 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4608076)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603307)(7153060); SRVR:CO1PR02MB144; X-Microsoft-Exchange-Diagnostics: 1; CO1PR02MB144; 3:+GN+d8d502oBRgMUkzFtuc4qhaOVuVrXYUicYDKupGad6O6fA5hji1P7uP8RAxqxI/HSN52HpvWap0xxBqM3KA/dX5gV2cGObhOxzsIu2HDbFkhbN4lxjuwxz+cjlLaN9SPQZvvsd56mAWXetfbBOUjvvrL6jfygrz/LOHmGEDsIO43I3ZhLlFHQjH+gjUWs8IKJ/knA91L6AjkRA+DTx1ByQobPfzU5cQI7aE2hv0t7QSeveCy8w0mzF1v5vC8R3QHNULCFtmUI35/+bFNCyzNhyZElgDLn5B/QDPozk8t3x7H156QCwPceYaCT14vKsv82RdW/6ueBtk59N/guqNiM2rY6hjz7I6AboxNPIqc=; 25:DPmrf64dcX0ZOB6dOg/9lZOhmmqNKKc57rq81enO8x1N11zM3r2xyXxfZQVy1iUvosF5V/nTgajkm2NxKicxpJ0uOYS9Y7HEeG9e/4zkp2cyOlaBKzIT5FP8EtX93pLC2wW9BuiCQKVpBf0udik/QqbJddfxeajf8/R1KqJva7Ex1WUOYG74FDSedvEAXlrFm0KUd59Xhe70YONsKvOx80ej7iaSIGJdT+6bCwIKZYdXI12NrbOHL5HRzEe/LFR3YihoestmdhKuO26IjZSCwVgPhKevtzmCuhfXgQToz06WR2HPJPscWGXgvrSSGc48HC5W2UQ/HGeJ7sxCJB+J0nuphtrEkXOM9Q5qhc8cnjw= X-MS-TrafficTypeDiagnostic: CO1PR02MB144: X-Microsoft-Exchange-Diagnostics: 1; CO1PR02MB144; 31:JUZczhxF/N2swU3KcuhiVuETeAqPXQenQmRNDj2yjQWFX4z90oAErEtRcu8XfK/jexiKmqlUO2F9V5Z0XeoW87cAzVmSBvFNEQqPYMelfiNYJb3Z8Z0ulxVkbYYs/ntk6lj5jKMb1u1WmlUo5eUhzmzu4qcLDIddtNKykbOIgIrYjGA0rYN9wPLsR5RyiBZnHEdQJhvEHDPQpp72r5Z5Ly7ubFlEa/GnhVCDKuJsAL0=; 20:1zJ8VfYe4E3p0X1X7lK4ShEMABJjkjl4jLBWVTgHnjCO4tF0rokRuHsnPV1gSJ3wQc87gszwMtVkLFUfy2eO3yLH6y4JPAOryUKP1EXU9EV7jAXFd/DAwKyevTDqWkVRDq+fjCaI2aVrdLgKOT0nikqoPVUUxXAdMqzROoR9tmZ1hgc0KzkMiNWuZJ1hAyuMbJvMCCCPNf2QlJppRPLxQQz/r8hMoNAkyMcB5omn33DLrl1RNWI9Y77ORecQBIBWOuWuo5Ma8DwI41nUDzMkjBD3GPOH0d9nM3wcrFg7oEvSUXcf8VdK0UCLeAFrJKcUZvnM55rL4fVgNpPw4J9zQuNuXdBIJmx93KhmkAvqlHp5GWxbAl1VFKZaN8yJ2kVwKAFeVqY/hXmJKDTnUBEHYY/cjfFHccttBZeCeA15opzQR/dwKd/2v7ulCNgcXPFpDktMN+L7z/IcVavjPE5xXVu42BdnqnoVsOZKr7410b/M8iH5bztGx15+4wAzei5GclSf+cFVbasaUM8PyUFliE9g5ggslVQIRySxgTyYPdw4Ss10/XhWmAL5Pe2MbRMCPDlSGAYFde7w9irX71UOAFgVjPRuTtDXzQhuiH5le18= X-Microsoft-Antispam-PRVS: <CO1PR02MB1445AA113E12AE99C68C018F00D0@CO1PR02MB144.namprd02.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(72170198267865); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(8121501046)(5005006)(3002001)(93006095)(93004095)(3231023)(10201501046)(6055026)(6041268)(20161123558120)(20161123560045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011); SRVR:CO1PR02MB144; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:CO1PR02MB144; X-Microsoft-Exchange-Diagnostics: 1; CO1PR02MB144; 4:OYv/cvDEXsPhMevDokD71b2VHh/l4cXPq0oL5I/UfNEMTi4YG7IYPB7+gJlvofnWTfACQmSTjoW84KiYxmfKAderiVo8kwqnosgW8KMnTFUXr/1uLZ6y0lZupF2TpZLOHk9N3VBlc4hcXgQXhfbIZl1DFF2DONdIIbHifKXCuE4GV2UsQs9WvrTcvEqnzwF7C8RI055pNpS3fWFaL0QPys/+YdGmmmb/uRt/++OVhootaTpQe+B4/aFFRTe6GbihZzM5tALsA21rE/ds3teQhDRo/8LhzQ/fmfCMGUuiDOympwYzPTP+7EOmTnUr0lxx X-Forefront-PRVS: 0528942FD8 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO1PR02MB144; 23:z5JnV+UvBYCbF0CzNJombRPhD7L/nTG7GeJf6HzcrK?= =?us-ascii?Q?+oh52TOtYlOQ5xKHoJ9Rka5mEsuEsD4HtdhnueYJaCnH37SLRAbwtxX7uBG8?= =?us-ascii?Q?+OtlFC/C2fxAl6i8w2KSw6cAi7KD2VJPheMkDBBUfdY7taD0zORon5AjE1Gb?= =?us-ascii?Q?+z1/N4nVXPXold11yIqBm1rGVgHeixq0srhsBAcG2q+0L4hFSNl42SwYa3tv?= =?us-ascii?Q?7ss4VHXyy9bcQrrAG1L2jT26VhodwigMl+iIuXio7PErlITaoy5mdyZ/N6Ua?= =?us-ascii?Q?dKa4XZIRtkOYTfYP5XdWr0aKjFSy4kT2CWQxhCv24tE/vlcN6fOKMbqje+zh?= =?us-ascii?Q?Cj9VBpgEGYXl8qXdJmzQzalzne5+Fx8jfhbjeYigwlvOIAb9tt4MQLVkKCmK?= =?us-ascii?Q?WAVaoilwvWzCykenYORr7NEjl150ycg39ptIfHlrNqlNZ0+k4LkbtK6lyk5M?= =?us-ascii?Q?d3AF2eNf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I2JdNkzx1l4kYTpzq8Zpj+jgQqO+O2Y8P4sXDgzE+Mt4FC4pyaSYxWRbwlL2cJIWg/BMU5neV/BNkM=; 5:gn1NzBlSRWdfIiWj54ZHHCUsRStPf6RNy7rWyLLldJcymSZn8YV0EBjWcBOrmHdSNlQT7BOYfxqMZBO+0T48nzTi/Bk/kd+oTaS+tyqE/MTUiE7JKrXGkgBxAW/HHLrgncHcudc04No8H/XHI+Ju2X+3mQcLjiMPSkg7u0eLPBk=; 24:fkOGE/FZSKoVhl0AHMNjZi6gTcIGbRTjlrLjY9zYVuAlIWHk4EmUZrS9/xUYWqUzfDBPC1qF6U6VSJJYBBv93qqZig1RGZU2/zmOK2LYNaU=; 7:OQ2xcCkm2iT2ClAht/11VN91pbkpzlnEP7IBoZ+C0hzuS2RkLj9WoWzbB+K+srdf8y7r/SJ5b3pW4FbwVNkEt6u8KJrSRaiq/D1AworEknN+iRiYqftA30+Eo8S7GjJCMJvZtbYSExphPGBhScCmr8zNNnEo8JHwShSI/U6stP6v60nH5sxGslbbQAYJY6pG8ojkgaSDFeiN5iYStH5QIpnrrZTaSSItC0EGDZj2LnoK2JK9Q+PIHKM6h1jt5f9p SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: microsemi.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Dec 2017 17:34:14.8059 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 93c65af4-1a52-432a-a608-08d548990e62 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: CO1PR02MB144 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 |
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) {
Check if the adapter can receive abort requests, before sending aborts Signed-off-by: Raghava Aditya Renukunta <RaghavaAditya.Renukunta@microsemi.com> --- drivers/scsi/aacraid/linit.c | 3 +++ 1 file changed, 3 insertions(+)