From patchwork Fri Jan 25 07:23:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Himanshu Madhani X-Patchwork-Id: 10780719 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8675F13BF for ; Fri, 25 Jan 2019 07:25:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6C6302EF10 for ; Fri, 25 Jan 2019 07:25:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 60C782EF78; Fri, 25 Jan 2019 07:25: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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, 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 0575F2EF10 for ; Fri, 25 Jan 2019 07:25:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728478AbfAYHZ2 (ORCPT ); Fri, 25 Jan 2019 02:25:28 -0500 Received: from mail-eopbgr710053.outbound.protection.outlook.com ([40.107.71.53]:44029 "EHLO NAM05-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727034AbfAYHZ2 (ORCPT ); Fri, 25 Jan 2019 02:25:28 -0500 Received: from DM5PR07CA0089.namprd07.prod.outlook.com (2603:10b6:4:ae::18) by BN7PR07MB4754.namprd07.prod.outlook.com (2603:10b6:406:f0::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1537.31; Fri, 25 Jan 2019 07:25:25 +0000 Received: from DM3NAM05FT014.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e51::208) by DM5PR07CA0089.outlook.office365.com (2603:10b6:4:ae::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1558.16 via Frontend Transport; Fri, 25 Jan 2019 07:25:24 +0000 Authentication-Results: spf=fail (sender IP is 199.233.58.38) smtp.mailfrom=marvell.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=fail action=none header.from=marvell.com; Received-SPF: Fail (protection.outlook.com: domain of marvell.com does not designate 199.233.58.38 as permitted sender) receiver=protection.outlook.com; client-ip=199.233.58.38; helo=CAEXCH02.caveonetworks.com; Received: from CAEXCH02.caveonetworks.com (199.233.58.38) by DM3NAM05FT014.mail.protection.outlook.com (10.152.98.123) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA) id 15.20.1580.2 via Frontend Transport; Fri, 25 Jan 2019 07:25:24 +0000 Received: from dut1171.mv.qlogic.com (10.112.88.18) by CAEXCH02.caveonetworks.com (10.67.98.110) with Microsoft SMTP Server (TLS) id 14.2.347.0; Thu, 24 Jan 2019 23:24:18 -0800 Received: from dut1171.mv.qlogic.com (localhost [127.0.0.1]) by dut1171.mv.qlogic.com (8.14.7/8.14.7) with ESMTP id x0P7OHPJ003579; Thu, 24 Jan 2019 23:24:17 -0800 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id x0P7OH3C003578; Thu, 24 Jan 2019 23:24:17 -0800 From: Himanshu Madhani To: , CC: , Subject: [PATCH 08/13] qla2xxx: Fix SRB allocation flag to avoid sleeping in IRQ context Date: Thu, 24 Jan 2019 23:23:46 -0800 Message-ID: <20190125072351.3504-9-hmadhani@marvell.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20190125072351.3504-1-hmadhani@marvell.com> References: <20190125072351.3504-1-hmadhani@marvell.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131928747248978392;(abac79dc-c90b-41ba-8033-08d666125e47);(abac79dc-c90b-41ba-8033-08d666125e47) X-Forefront-Antispam-Report: CIP:199.233.58.38;IPV:CAL;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(39860400002)(136003)(396003)(346002)(376002)(2980300002)(1109001)(1110001)(339900001)(189003)(199004)(36756003)(97736004)(105606002)(106466001)(498600001)(47776003)(87636003)(48376002)(50466002)(305945005)(486006)(14444005)(2906002)(50226002)(8676002)(81166006)(81156014)(8936002)(26005)(356004)(6666004)(26826003)(336012)(51416003)(2616005)(476003)(11346002)(446003)(126002)(42186006)(76176011)(4326008)(69596002)(316002)(110136005)(4744005)(54906003)(1076003)(53936002)(36906005)(80596001)(85426001)(86362001)(68736007)(16586007);DIR:OUT;SFP:1101;SCL:1;SRVR:BN7PR07MB4754;H:CAEXCH02.caveonetworks.com;FPR:;SPF:Fail;LANG:en;PTR:InfoDomainNonexistent;MX:1;A:1; X-Microsoft-Exchange-Diagnostics: 1;DM3NAM05FT014;1:fcMedpvRm8v2iKN/Ak25aG6IT821IVvx2Q69noT7CqpKmqWLEutPQ8cnmXUyUGpbdUhe8PDD96jy2oU5nyaUmmPBqJjDk671nUWfkY+i6v2Dx5aCsDjxsMQGNr+3042Z8r1u3nCIVzbW1l+u/sA80Q== X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 74e024bc-d84e-4c5c-9493-08d6829645e6 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(5600110)(711020)(4605077)(2017052603328);SRVR:BN7PR07MB4754; X-Microsoft-Exchange-Diagnostics: 1;BN7PR07MB4754;3:DC382LZJFdPoavAcWPfKyL15D2P57Edxdo6vTk985gacdzk2eSBszhsCdd6CnoXF/9rrz/LwtNJf4kQxHTIrXaTw7d2gtLMLTWLO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P7vEbStnbkNJwAiIYDCbQNuWbb6552HB8eCNC54LBXydLvyxW4IxRmzMo8vBotRm6O0/tOj9U7oQab33GyZ2iFlLL3biz68fVsUTXvUmlp52+NM0EGT4kwR58Q0WGhPIuu5ZfFbed20FsZ48ugDfO5+A4NJeVS5Xu4KYQle0t250k6QmF771l2WbCYQbz3oSw+GeN0xpq/1pof0+kzX/DqymvLgUM3kI+Q10gPesru0xSQnWLdvfVo8xV8qlLT2YKoueX9XrjyVFzJeLGB+S+MoP9TadThItJkGgiSYbVkl3n/zApim4q/nqcjbkCfw==;5:csQKigftUaQOnQcW2htj6UIaRXRvxWujVzlueGZE1FII18NDIJFSEZ5Xq/dB7xyUCvs4eaFe4NeubEAXBqpEpHGab33j9iF6hNcTcQ4FI0i1ubS//6ssGGhgTtwvBHEXp1ylZTUL2Pko2CclqdGNERptJk9UdWi7CYudrMPuZGF3nAaKWJ5xZn3sZymWCbsbEy8jyDbGjmINJKV30AviMQ==;7:8yX7ouwfxDP/ZufzJgGn9l9Mk4JMyTEkRPRHTfZUidsX8urkTWGsknFr0pVcINPYicXtn+dnSxCA8sTjCkjiSiSND79jUbxnNQsOlTw4CJhpInsxRtbrbHYj0SObQWXyAv0dxgIGe74Rk8+GM6rzcg== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2019 07:25:24.5485 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 74e024bc-d84e-4c5c-9493-08d6829645e6 X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[199.233.58.38];Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR07MB4754 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 From: Giridhar Malavali This patch fixes SRB allocation flag from GFP_KERNEL to GFP_ATOMIC, to prevent sleeping in IRQ context Signed-off-by: Giridhar Malavali Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index aa72e8316533..3bb4fa97e40a 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -1829,7 +1829,7 @@ qla24xx_async_abort_cmd(srb_t *cmd_sp, bool wait) int rval = QLA_FUNCTION_FAILED; sp = qla2xxx_get_qpair_sp(cmd_sp->vha, cmd_sp->qpair, cmd_sp->fcport, - GFP_KERNEL); + GFP_ATOMIC); if (!sp) goto done;