Message ID | 20190125072351.3504-6-hmadhani@marvell.com (mailing list archive) |
---|---|
State | Mainlined |
Commit | 51fd6e6351a62da87a7eb7b059d34056d73e68e5 |
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-2.web.codeaurora.org (Postfix) with ESMTP id DF4A7922 for <patchwork-linux-scsi@patchwork.kernel.org>; Fri, 25 Jan 2019 07:25:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C50912EF03 for <patchwork-linux-scsi@patchwork.kernel.org>; Fri, 25 Jan 2019 07:25:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B95B02EF2A; Fri, 25 Jan 2019 07:25:19 +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 51A9F2EF03 for <patchwork-linux-scsi@patchwork.kernel.org>; Fri, 25 Jan 2019 07:25:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728468AbfAYHZT (ORCPT <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); Fri, 25 Jan 2019 02:25:19 -0500 Received: from mail-eopbgr750040.outbound.protection.outlook.com ([40.107.75.40]:57152 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727507AbfAYHZS (ORCPT <rfc822;linux-scsi@vger.kernel.org>); Fri, 25 Jan 2019 02:25:18 -0500 Received: from CO2PR07CA0072.namprd07.prod.outlook.com (2603:10b6:100::40) by DM6PR07MB4377.namprd07.prod.outlook.com (2603:10b6:5:bf::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1558.18; Fri, 25 Jan 2019 07:25:14 +0000 Received: from DM3NAM05FT051.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e51::209) by CO2PR07CA0072.outlook.office365.com (2603:10b6:100::40) 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:14 +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 DM3NAM05FT051.mail.protection.outlook.com (10.152.98.165) 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:13 +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:09 -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 x0P7O7HB003567; Thu, 24 Jan 2019 23:24:07 -0800 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id x0P7O7Kg003566; Thu, 24 Jan 2019 23:24:07 -0800 From: Himanshu Madhani <hmadhani@marvell.com> To: <James.Bottomley@HansenPartnership.com>, <martin.petersen@oracle.com> CC: <hmadhani@marvell.com>, <linux-scsi@vger.kernel.org> Subject: [PATCH 05/13] qla2xxx: flush IO on chip reset or sess delete Date: Thu, 24 Jan 2019 23:23:43 -0800 Message-ID: <20190125072351.3504-6-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 Content-Type: text/plain X-EOPAttributedMessage: 0 X-Matching-Connectors: 131928747141175106;(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)(136003)(376002)(346002)(396003)(39860400002)(2980300002)(1110001)(1109001)(339900001)(189003)(199004)(106466001)(105606002)(68736007)(2906002)(1076003)(50466002)(6666004)(356004)(14444005)(48376002)(36756003)(16586007)(36906005)(110136005)(42186006)(316002)(47776003)(87636003)(498600001)(26826003)(81166006)(81156014)(8936002)(50226002)(305945005)(8676002)(54906003)(85426001)(51416003)(86362001)(53936002)(80596001)(69596002)(97736004)(4326008)(76176011)(336012)(486006)(126002)(2616005)(11346002)(476003)(446003)(26005);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR07MB4377;H:CAEXCH02.caveonetworks.com;FPR:;SPF:Fail;LANG:en;PTR:InfoDomainNonexistent;MX:1;A:1; X-Microsoft-Exchange-Diagnostics: 1;DM3NAM05FT051;1:wOQ2YUu98q66N6AekWzo7oipk8a0+re8ucclN2chBJz+WxxhTFWx1/wnmBVRgNeEoiNnv2db8d7sIEXHtRVJi//fBjEmX/5Pmis2+PGXqHc4ab/US/mmCLi/moUK17jU4l1+saE5K5ydDcn5qCdWNg== X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8f49a857-4f3c-40c2-1c3d-08d682963f6d X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(5600110)(711020)(4605077)(2017052603328);SRVR:DM6PR07MB4377; X-Microsoft-Exchange-Diagnostics: 1;DM6PR07MB4377;3:IVb2mEgj2mRxocLKBkV5gdbDbqsG/HZgX79PKw9EtCh6q3G7YacT2OTbH8ymoa/WXbsIdmO7FAhY13R06Hd1TyldADpIFc0jcSTRyJ+/OIoihuXjOSg0qYNQ1yX0BQ44SHT8OI67buYJggXJKsGfshvzCnzLq6xuZmmbKuPRHu9TLdGcDWw8ncthp8fQ3UzVOG6eLj4RJSlLDbR4F0TAH/Hg3rzZdQh8c7ge+/ZQYiqyXna0NHxDhnQCoRzzUgaTXOdEQRCIpuryBU9219mUfytlqiaoa4wu/jHyYEGSN5+cj0vf2W890gkWPMDyMLxVfqSpcnt5kDIoplSLpfCzWAWhwUKw7A2Uu15TgCdVFyYzK+zPv2LQnfco5WpP7Rwj;25:JbnlXCJfSRp0hQ4DUbVC2SYVhmbgukgQq6wDOxYwlnKErGfHHqqZgHBOcqY+BOCcHagxIZ5PvajNNNEHECvntPZ3v2wmGIHm+mXyy9fsiIkqB0oKRAPBV8up6p0oZO7PDA4lOi3B8FGqpVxiTqs93sQqn0y8oD0rfwwfP0MHw/n4z+nHV+ovhlukxucBGa9azoxZGlE5sRK6KaKXv65OcIsAGBDPx/trxS9YJA98U0ssXu11D37rw1SDfN4ucxH6/zv78xRO4ceB7k5rufaGry1TlkRB891MDZ4cOKtvn3p6eaj1rD9svpPqPeIvjjfq0WoUnDOVmI2dRed5I4ahAA== X-MS-TrafficTypeDiagnostic: DM6PR07MB4377: X-Microsoft-Exchange-Diagnostics: 1;DM6PR07MB4377;31:oDonfauTdnGY5VCWFJ9NameXFDWqLdrXVoa+NuySJQXMZISfVd+QXSfPqkwKsU5ptX5S6BoCjyLtM+H3R0IoOracNV8UtMZ1w4jXZLefR2aJ1+jukNg6iaTIEf9aFIo5u4kG0TWRA2tZTcDUkwnUjRhtfiliKCiYchu9v8bmbWIJZkOq4LHVGIHCB1syTnui/y9ZvLVYQfFNZrnU4547qtxYgiQbu13GMIk/6uLZ6xA=;4:XNYBT24+V5+kr4JUttbD6/w1grTZZeO+gmhoXLHNkpa/wPt3ZJm1Es4++0nPX81KfgYsIPvumlJ51XKDRupyxoZVXiETBU6Suz3tzNlYeoSSbexD9H+9JuzSAOsf8Sroz/2TEBL/q7nDmbRIhnWJxgkXaPYG1rmwP0S7ttch/iqcivqKVV+fyEF+guPsZgG0OzwZ8TVEf8MYkBSTqcOChCkjbdbwTWIpxXVJkGBVPT8zjsbP9U0kchzdKjscPShre0RfsgPb1v44rzGoZem0O7NI82wOZAKE33Xb0Ja6dYtO6OwzimmoWe+sCpOMaXZ9 X-Microsoft-Antispam-PRVS: <DM6PR07MB4377B70A24BB9122DFD78831D69B0@DM6PR07MB4377.namprd07.prod.outlook.com> X-Forefront-PRVS: 0928072091 X-Microsoft-Exchange-Diagnostics: 1;DM6PR07MB4377;23:gGjUg50picXYaNlV8QFkD8UrClAfmJ2IG5tq7bFIQCdO1bQCoTyEf4heBDx4RInp0J1vcl6LqFlPY3sMirKv5IzBNWgcF5f4/6QG1+FnhVP/GGhxydH3Y9XhpAnXXRDALiy/3i0sOq+0nI6pGty4OUHJ3o6GYmEL4groKCSeeD47y+sE+iXUtYUSeh0ZY6QwIur5QRvgVtsbHMr7OUBNf10MSVwFBeZBbQo+hbbZDRqnV0lvpXiYH5LJhCyBL25Ps2ZVFB0hLgybL0inJ+kX3xrFr5HM9kwyS1x4/VcmIcehR4hHxYKbsfnpLWx+UT66Ka8twoARTgk/ym/2rnMh6MI4DiaBVTQl0lOS+zvxzSkTkONTZLhCFj7euEthKCJHo1oThjjE/eXgX2ziQYSmTsoQJRl4FZuSl8nb12vJYYVhYFyQDGn7Xsmr4wZOcnT8KQzj29j1fPUPGYh4TQ5bBhhc6ds0E+XBTjAZ7w0dO4+ubOKZOe9SBji5dMl/x16VLwXzisq2VLINMkb0IMOs0odXXiOEw4D50kYaaO5FlWDQb4F4nR0Op3rW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aYowsdSfK9Rg58f5BA/2Kj+x4lY= X-Microsoft-Exchange-Diagnostics: 1;DM6PR07MB4377;6:VqGbZBNN7fxfrjqp9wky5nXERRUia0ES0/0LVPbM8XYFbNxP8BMA6oiJm15KQ3Tt0AOQ7ssymrW6qWBTfOqP3AR71M+TYdPgP2K42fAO4l1591S6TIxO2hg0EzkweEZMKAnKAe6ZdjZykyTrmdmz3kztTzuFJQ5YW4i1sk/xW6A6pjbkHPSoIh6EhvyMRZlwgiCHqxaLGXeuyze9LScRdAZ/1nWCSD2AopnCo1lJlfJumFB+Mtx+yECAgO6X484FvT57j9ZHjzzsl+kuBoXGlONPdVsrfYLCt+Q44JjMpXCt0lgdfYFzhTUzIwujB1LRSC1CJvNfBOLXIcMhPuMnaD9OU503GhPmQMEFkCW6uv6FYVhqRvowXYrtlWSmZaGBR7Lp3tJAs22xzQAYfegF7aCvxGWsOZ1wTjRe68yxwfuSlJZzyd3f/bRvA8xgA8mpq3MxdKf/vhrJveO1bVidTg==;5:d+Uovikah8+SkvBBwGeR8JWkfSaORSLkMLzQrXoZSZafJuB28cnjQgKgoQxkHjjlnf9iYBG6rBEmyPgdvDoWUx/oxnp7gVBAwii09+rZGl96sTMkvp7mBa+zapOlTXlwTKPfUoxfNLqpOBCZM4b0VcXBfcir5dh/avubTAYsY/DzLsfM159sCJxz1ZNrlwLAkqDqPb8N8W7Vuf9LechBcA==;7:Ouwh/CYN89ghDDAGX6sawwmmEAJ4PYupVDKGCJ8fbHXiGxPzYPwy5uCeI7e9Q9Jv5j5bq7Db+UxzsSixiG67R19KEdqv2SEkhkkpiEclZsO5ybigRwuL5sMpNa5AcFTnXAqXVRhuC1rgh//QH+aiRg== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2019 07:25:13.6881 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8f49a857-4f3c-40c2-1c3d-08d682963f6d 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: DM6PR07MB4377 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 |
Series |
qla2xxx: Driver updates and bug fixes
|
expand
|
diff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_target.c index 510337eac106..8bc4c651af68 100644 --- a/drivers/scsi/qla2xxx/qla_target.c +++ b/drivers/scsi/qla2xxx/qla_target.c @@ -3257,13 +3257,10 @@ int qlt_xmit_response(struct qla_tgt_cmd *cmd, int xmit_type, unsigned long flags = 0; int res; - if (cmd->sess && cmd->sess->deleted) { + if (!qpair->fw_started || (cmd->reset_count != qpair->chip_reset) || + (cmd->sess && cmd->sess->deleted)) { cmd->state = QLA_TGT_STATE_PROCESSED; - if (cmd->sess->logout_completed) - /* no need to terminate. FW already freed exchange. */ - qlt_abort_cmd_on_host_reset(cmd->vha, cmd); - else - qlt_send_term_exchange(qpair, cmd, &cmd->atio, 0, 0); + qlt_abort_cmd_on_host_reset(cmd->vha, cmd); return 0; }