From patchwork Fri Jun 2 16:12:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Madhani, Himanshu" X-Patchwork-Id: 9762973 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 32B6360365 for ; Fri, 2 Jun 2017 16:12:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 24E3828531 for ; Fri, 2 Jun 2017 16:12:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1936828569; Fri, 2 Jun 2017 16:12:44 +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 65BD728567 for ; Fri, 2 Jun 2017 16:12:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751244AbdFBQMk (ORCPT ); Fri, 2 Jun 2017 12:12:40 -0400 Received: from mail-by2nam01on0059.outbound.protection.outlook.com ([104.47.34.59]:63132 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751202AbdFBQMc (ORCPT ); Fri, 2 Jun 2017 12:12:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=nuIJulADWSmaS+op8iEbVwaCjCyXHxY40fwcH2qQOss=; b=cXUw0CDZGWD1lBOoON0wWV/LFYrfE137f90bNF9kDhM5tlFmpDRkPMjDnTUbJpbYhw4R9LEJxzc4N3jtD1EgjFKN9kLWozHECdbGejNBquhePYKYx/BvKg8kYp+nQoKRqYoG41sjnZONzyzBf+AijxOORvwquqMTlUHb15aCIuQ= Received: from SN1PR0701CA0063.namprd07.prod.outlook.com (2a01:111:e400:52fd::31) by CO1PR07MB425.namprd07.prod.outlook.com (2a01:111:e400:103d::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1143.10; Fri, 2 Jun 2017 16:12:30 +0000 Received: from BL2FFO11FD046.protection.gbl (2a01:111:f400:7c09::172) by SN1PR0701CA0063.outlook.office365.com (2a01:111:e400:52fd::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1143.10 via Frontend Transport; Fri, 2 Jun 2017 16:12:29 +0000 Authentication-Results: spf=none (sender IP is 50.232.66.26) smtp.mailfrom=cavium.com; vger.kernel.org; dkim=none (message not signed) header.d=none; vger.kernel.org; dmarc=none action=none header.from=cavium.com; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by BL2FFO11FD046.mail.protection.outlook.com (10.173.161.208) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.1101.12 via Frontend Transport; Fri, 2 Jun 2017 16:12:29 +0000 Received: from dut1171.mv.qlogic.com (172.29.51.171) by CAEXCH02.caveonetworks.com (10.17.4.29) with Microsoft SMTP Server id 14.2.347.0; Fri, 2 Jun 2017 09:12:09 -0700 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 v52GC9Zr006751; Fri, 2 Jun 2017 09:12:09 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id v52GC9kv006750; Fri, 2 Jun 2017 09:12:09 -0700 From: Himanshu Madhani To: , CC: , Subject: [PATCH v3 14/15] qla2xxx: Remove unused irq_cmd_count field. Date: Fri, 2 Jun 2017 09:12:06 -0700 Message-ID: <20170602161207.6660-15-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170602161207.6660-1-himanshu.madhani@cavium.com> References: <20170602161207.6660-1-himanshu.madhani@cavium.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:50.232.66.26; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(39840400002)(39450400003)(39850400002)(39410400002)(39400400002)(2980300002)(428002)(189002)(199003)(9170700003)(86362001)(80596001)(2950100002)(6666003)(2906002)(50986999)(47776003)(189998001)(101416001)(4326008)(54906002)(76176999)(38730400002)(50226002)(8676002)(5660300001)(305945005)(1076002)(81166006)(36756003)(8936002)(105586002)(478600001)(87636003)(42186005)(33646002)(48376002)(50466002)(72206003)(106466001)(356003); DIR:OUT; SFP:1101; SCL:1; SRVR:CO1PR07MB425; H:CAEXCH02.caveonetworks.com; FPR:; SPF:None; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD046; 1:3Y5845Nu79jth/G2e3Q1I4kkKBYur3bwY6gQJoxsUl3gEa6dtWQREm3zRL0MI+A3LGn9S3CIZGrl5l4sn9ckW3LPS1+XnjUNDj96QaqMojnk5TpxmlP8pRCcHPxHMwVx29F8B7ZVSpUJixpZjvE2s9KH8Kjd3vpUfPFu7/89VOMb62QwlHCST3bxGNEOUlSoC4V9/dLpUHq+4kC9S83NXLMx0TpHPlKKexRcFLpz2CjgPhNQ3g2XP3jJ1OX4F7bRIvPB9lki+svFWgL4gl15wYI608WLvZSAJthXfYSbgbMf/5V75xHXMRiR5MaiFj5lugXZyseXKl+WIj5RXYae1BjiR/VTTBKZigv7jQcR21b7FsFWGHfJj8HT6ie/LHrCSBu2eYUCMhFQAUXAfKkIV9BM9e1+h55fO04qvS5pnk4qMeWFqyycsFH4arZZ861oGCZKKJPD9UP6YkGgS77bIeBlpeh7Ft6EWse8Mn02wGmINd0sMwFCCsPWCOzMEupX3MGDm4eFJzGHczK821frCA== X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PR07MB425: X-MS-Office365-Filtering-Correlation-Id: 62938ee3-6105-4838-8a4b-08d4a9d22b08 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:CO1PR07MB425; X-Microsoft-Exchange-Diagnostics: 1; CO1PR07MB425; 3:qctJ7kbOBUMaM8BZfYnarMRp9tBk9Nnit4io0csXCGtA0BSKD+WlB5uWgtqoGCEHX6xw4U/sEhedHSyyNO/7owvmpZ7375Ja6bUbMn7nCGvfuW+tyE29d9zlgvfWUlHvGRJaKFhd8Xb8n5TVGRfMrsKIYmGN2aVF5CbdfyqSgHDAyANsfLRMTOkAxsN6IyuHH8cv/6PEn6yxusYS8nJg+FghWNRTbCxWPaL337vsJm8xWEtmb/gihU2WPZ90zcNWsADWpU+0aiRM0U17HXkUN5P0qKYZvXjqx01wlpm2opZhqnHfIWpkKKgqJDBdQhdtFBwBGkt97wjZ2eWo5Dd7VqE3ekV6uNZ0RekhmBDIXDy+bVBsY44MfEWmCtFk/xL0oD0hBawI4NTIjuSJJJqHfEHHy1lrgM62JoxyAOhxTDV4c/Jadfi9xDgY4peccBig4G+p6J7vJn8ONJN7Y3hYFpoiDszA/b+pwt95v36YLgxFMtvuxc4mvtMRQC5ML5Pr X-Microsoft-Exchange-Diagnostics: 1; CO1PR07MB425; 25:bZD3jZjw79VdvtvgC0lZXnzEa8+dSFdvljqsexqXQcKOiNwf+GC/jmm+RxTdQKvSnPahDJNr6t0HTbbv1Tp6cyZIHl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6c215N1r8BMIAVAn8EZXswIGNO/UUJwL8DxaeJI/rSnUv8ggK8mqi7cAJ92BdKLmctdEw6C9m52f9/4d0gtzPS5P0cwWMVf8QdpA/8r61mM2natm8BpIeOLg39GxjbfeatK0tTsOF7x3qf5WC X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(13016025)(13018025)(93006095)(93001095)(3002001)(10201501046)(100000703101)(100105400095)(6041248)(20161123562025)(20161123560025)(20161123564025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CO1PR07MB425; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CO1PR07MB425; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO1PR07MB425; 4:mDocKr/nu6iuy5v1ApMh1n61+3S24bANv7U55lFmJyu?= =?us-ascii?Q?pQJj2CJhThqysRnQJGtEmvaf5xTmtFL7/4KZAQSgR0+QdbMpFjOnQthqalZ7?= =?us-ascii?Q?U8fake013fs3PTA0fo41L6cA1KseQGX4jdN68hnsIrFDbYsujFJAzWyBFakH?= =?us-ascii?Q?RXfM3EMmInNgT2FznR6TJPW+qp8QvNqnou77mXog9McSvgS40zd17t6P2WBt?= =?us-ascii?Q?kASILkgyprHz/2SuGoat3Z6hGam32ULxSEuOIONNzLrIgKf9qCr8GFsFpxd2?= =?us-ascii?Q?b7ptE1lsnzQ91DxyLUD2VPJe9ayAGfFjyQBfryPU78Hbrbg1ZBNOBhNrxbZG?= =?us-ascii?Q?PtT94pCS7vD8rvMSoATLB9QOUxOJqojxrnMv3Zpxc7TPfvyfSUv52VJINeIH?= =?us-ascii?Q?F5zgrNpl55eamrn+Zn1gv0vSL9Au+xcTd7AdYDj+ABOFR5Hgyrlgw8enbZo4?= =?us-ascii?Q?/wcWjSmwdN4yjXCjxJrdqL3gjzlYBlxTzK6G2Qy5MFsowSGw8tK28tJrTQ9h?= =?us-ascii?Q?6NbHVIUdbRQNt/rMiwkUpHVHTOOQvyjsRRG9Uy9GtIGrDH/ucbqV+BOWKmIk?= =?us-ascii?Q?4Eml4dPHnUYhUcS6UEmlI9x7lBOjDaQGULUK8bNUtqWisyh4/k3/cHBrmZCh?= =?us-ascii?Q?HsxGYhDZRP9/7U84N7fjI3T08suQEpG1mY+EKzN7PKv3QhLFhRdsmVGtumcg?= =?us-ascii?Q?ep+xYWAxgpr2kvKsV7bnrBBw56H4VLSzxQNdNpPpA4oZpuzwUK8D7Co+N2oT?= =?us-ascii?Q?ypMnnvNDtcWLh5xX53c1gANj9bFWlgmOkbc+EU+tSa78+gpbxm1nRS20MkXJ?= =?us-ascii?Q?qzHgZe/CMzauQBsvlHImrd7lzwmQmFTSFqIMERoDuHwBw3Fl7Oa14vw4OB35?= =?us-ascii?Q?3tLHlkNyhiMYd1mHH156l0M97tFGvKw9rc/Cc3zhk2CNsP/+T4s252VjaY8n?= =?us-ascii?Q?/BB93VKUlsiplXwq4hV5khtwnU99wdRHEpesSanQDR/qzWg+4b0CRGdvigEc?= =?us-ascii?Q?ivMp7EI/+hmfADobpQSdPS5p5klXDQM2tVGymypBkq4G4FElytpBEYD5wKpN?= =?us-ascii?Q?7ary2L+gUj6mPHygciFu/H6I3q30+61kLBXmPJi+qa9BqgKBvzDhKMGJJOfy?= =?us-ascii?Q?FgDQrX2yuLXEuYQ2OV7T/J1b6BYDr0ATnx7qOuOYgfeDndorCnjBCvrNcOsD?= =?us-ascii?Q?hn3ay5T0GUvM=3D?= X-Forefront-PRVS: 03264AEA72 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO1PR07MB425; 23:ljMrq2k8UGqn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sD6zZ+q31owr7eKrzs6QM2wefvldQpiqOinwJY+vDpcf2Akd5d6LDvQ9BFjIFIS3JY4Tw5kxfYVLkltHPjYkRvBJLsnz3+HWVw/OSG5sWZQfl+mjegOZ70MXn+L83futmQ/EtWQpu8Gyimw206Ghk9w/rAevFcQ0V2D3fpAEzzlzeYzxSbsfC1fERV1N4PMpLQgxU3n7GXJ4WcsRfFk6udClBUqUDfqQxvB7dUyCfxFESaV60ODftd8YhpfOEJl3s8i2e03rRyeBSHkxe/zm; 24:pfwqbptxEwcJUx6g2rImLUofgtMOYVKbZQPzx9O1qwgUVlHRcSDy45/mt4ElUi9wXJPxPfWJQZZCnHm7VUq7NGY2mvhbGDOrEnJvIG+X57s= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CO1PR07MB425; 7:oMXqKtDXmxvv698l6ZVxkYBdp/Po8F7pvHctgbXgxdCd0HLZ7FJo1/YOfNxu86llxVOyXJmGzpSLP2Sa82u2W3WBY6Kxmuyn/fURswDoFllDmWdCOZkdQlmt01538KnmUBt1UPg7o0HZhXYD8Dswf0shsxuVbjXVNHIvFogAKSjMhBgzwq9PN4AtXciKloRKNPAWRoFr0/gNjab3qsOc1WBao/KZa/fUsdTnlmYf5DGLwgg9DVmOKHN6w5eB4kcdY7RjF8AXI9Fq6AFQ0YutUyxxFNAdsfypge0kHXjiLz/R0wFxrqOOlQTdNR41/h7bfLQEgNER60fFH753tO32Sg== X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jun 2017 16:12:29.2700 (UTC) X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=711e4ccf-2e9b-4bcf-a551-4094005b6194; Ip=[50.232.66.26]; Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR07MB425 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: Quinn Tran When driver is unloaded, all sessions are torn down, all commmands are flushed, chip is reset to ensure there is no knowledge of target mode in ISP. The irq_cmd_count field was used to make sure all commands are processed on top of that. The irq_cmd_count is now redundant and not needed. Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_target.c | 9 +-------- drivers/scsi/qla2xxx/qla_target.h | 1 - 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_target.c index f9ccf845d084..a8e57072019b 100644 --- a/drivers/scsi/qla2xxx/qla_target.c +++ b/drivers/scsi/qla2xxx/qla_target.c @@ -5355,8 +5355,6 @@ static void qlt_response_pkt(struct scsi_qla_host *vha, response_t *pkt) * Otherwise, some commands can stuck. */ - tgt->irq_cmd_count++; - switch (pkt->entry_type) { case CTIO_CRC2: case CTIO_TYPE7: @@ -5382,10 +5380,8 @@ static void qlt_response_pkt(struct scsi_qla_host *vha, response_t *pkt) } rc = qlt_chk_qfull_thresh_hold(vha, atio, true); - if (rc != 0) { - tgt->irq_cmd_count--; + if (rc != 0) return; - } rc = qlt_handle_cmd_for_atio(vha, atio); if (unlikely(rc != 0)) { @@ -5517,7 +5513,6 @@ static void qlt_response_pkt(struct scsi_qla_host *vha, response_t *pkt) break; } - tgt->irq_cmd_count--; } /* @@ -5547,7 +5542,6 @@ void qlt_async_event(uint16_t code, struct scsi_qla_host *vha, * Otherwise, some commands can stuck. */ - tgt->irq_cmd_count++; switch (code) { case MBA_RESET: /* Reset */ @@ -5635,7 +5629,6 @@ void qlt_async_event(uint16_t code, struct scsi_qla_host *vha, break; } - tgt->irq_cmd_count--; } static fc_port_t *qlt_get_port_database(struct scsi_qla_host *vha, diff --git a/drivers/scsi/qla2xxx/qla_target.h b/drivers/scsi/qla2xxx/qla_target.h index 07ff565485b7..c328a267c4c3 100644 --- a/drivers/scsi/qla2xxx/qla_target.h +++ b/drivers/scsi/qla2xxx/qla_target.h @@ -790,7 +790,6 @@ struct qla_tgt { * because req_pkt() can drop/reaquire HW lock inside. Protected by * HW lock. */ - int irq_cmd_count; int atio_irq_cmd_count; int datasegs_per_cmd, datasegs_per_cont, sg_tablesize;