From patchwork Wed Feb 8 22:24:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 9563629 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 1275C60236 for ; Wed, 8 Feb 2017 22:27:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DB2B32840B for ; Wed, 8 Feb 2017 22:27:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D0162284F2; Wed, 8 Feb 2017 22:27:32 +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,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 7A2432852B for ; Wed, 8 Feb 2017 22:27:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751756AbdBHW1b (ORCPT ); Wed, 8 Feb 2017 17:27:31 -0500 Received: from esa2.hgst.iphmx.com ([68.232.143.124]:63830 "EHLO esa2.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751537AbdBHW11 (ORCPT ); Wed, 8 Feb 2017 17:27:27 -0500 X-IronPort-AV: E=Sophos;i="5.35,348,1483977600"; d="scan'208";a="76618167" Received: from unknown (HELO milsmgep14.sandisk.com) ([63.163.107.225]) by ob1.hgst.iphmx.com with ESMTP; 09 Feb 2017 06:28:20 +0800 Received: from MILHUBIP04.sdcorp.global.sandisk.com (Unknown_Domain [10.201.67.162]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by (Symantec Messaging Gateway) with SMTP id F4.72.18895.ACA9B985; Wed, 8 Feb 2017 14:25:14 -0800 (PST) Received: from milsmgip12.sandisk.com (10.177.9.6) by MILHUBIP04.sdcorp.global.sandisk.com (10.177.9.97) with Microsoft SMTP Server id 14.3.319.2; Wed, 8 Feb 2017 14:25:11 -0800 X-AuditID: 0ac94371-0fadb980000049cf-f7-589b9aca700f Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 2F.32.18148.7CA9B985; Wed, 8 Feb 2017 14:25:11 -0800 (PST) From: Bart Van Assche To: Bart Van Assche CC: , Giridhar Malavali Subject: [PATCH v4 05/37] target: Remove se_tmr_req.tmr_lun Date: Wed, 8 Feb 2017 14:24:35 -0800 Message-ID: <20170208222507.25715-6-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170208222507.25715-1-bart.vanassche@sandisk.com> References: <20170208222507.25715-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrMLMWRmVeSWpSXmKPExsXCddJ5ke6pWbMjDCbdsLDY8+Acm0Xr0rdM DkweM34vYvH4vEkugCmKyyYlNSezLLVI3y6BK2P/t3+sBXu4K2YcXMHawPies4uRk0NCwERi wszNrF2MXBxCAkuZJH6+ucoM4WxllHjUe4oNpqpvSxMTRGIjo8TXac/ZQRJsAkYS397PZAGx RQQMJH73XmAEsZkFwiS+rWsBiwsLWEtsv3caLM4ioCLx5MFeZhCbV8BeYumRr8wQC+QldrVd ZAWxOQUcJCa8fAZWLwRU8+rAF0aQxRICj1kkrk/7wwbRLChxcuYTFohlEhIHX7xghmhQlzi5 ZD7TBEahWUjKZiEpW8DItIpRLDczpzg3PbXA0ESvODEvJbM4Wy85P3cTIyRoC3cwvr7tfYhR gINRiYf3gvXsCCHWxLLiytxDjBIczEoivCnTgEK8KYmVValF+fFFpTmpxYcYpTlYlMR5s2Sn RggJpCeWpGanphakFsFkmTg4pRoYxXSUe2Qy96h5nV345SHH03qvQzt4/jV9fL51WspZI69X dseyrWRO2+jmrrExnXW4eZ2Q1xWhSuuPaiYiEuXlBZwTrjI+clfoOS+fwSaZfWmfw9E571cz nv5zIfjvQdvfj5pUc5fZX74i/zerT3v6pDAn1mXJW7fKuO/onfVz2YWV3gZCC0O+K7EUZyQa ajEXFScCAJRzQTFWAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprEJMWRmVeSWpSXmKPExsXCtZGTTff4rNkRBksnCFsc/NnGaLHnwTk2 i9alb5kcmD1m/F7E4jFtzXkmj8+b5AKYo7hsUlJzMstSi/TtErgy9n/7x1qwh7tixsEVrA2M 7zm7GDk5JARMJPq2NDF1MXJxCAmsZ5TYt/MYK0iCTcBI4tv7mSwgtoiAgcTv3guMIDazQIjE 7f/dTCC2sIC1xPZ7p8HiLAKqEssv/wGzeQXsJSYum80IsUBeYlfbRbCZnAIOEhNePgOLCwHV vDrwhXECI/cCRoZVjGK5mTnFuemZBYZGesWJeSmZxdl6yfm5mxghvo7awXh9ovkhRiYOTqkG xlSVNLWyianx5Wbu+0NmppzY/EP9rXD41xpfM7WtNzctEIyo/vK13bquYG7RzgmLbii6ue+P DN93eErEUsZn/tGeKVFKPf5bWw6UOtRe2FjNfr3/7u8JTCwTqrf8agpw+/TMJSTA9uV/R41n mfFm6tZzV66bIXIipmTTVsF7bXMmzLKwPfJGQYmlOCPRUIu5qDgRAJD/M76lAQAA MIME-Version: 1.0 Sender: target-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: target-devel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Member tmr_lun of se_tmr_req is set but not used. Hence remove it. Signed-off-by: Bart Van Assche Reviewed-by: Hannes Reinecke Reviewed-by: Christoph Hellwig Reviewed-by: Himanshu Madhani Cc: Giridhar Malavali --- drivers/target/target_core_device.c | 1 - include/target/target_core_base.h | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/target/target_core_device.c b/drivers/target/target_core_device.c index 1ebd13ef7bd3..9d55e9fe7857 100644 --- a/drivers/target/target_core_device.c +++ b/drivers/target/target_core_device.c @@ -163,7 +163,6 @@ int transport_lookup_tmr_lun(struct se_cmd *se_cmd, u64 unpacked_lun) rcu_read_lock(); deve = target_nacl_find_deve(nacl, unpacked_lun); if (deve) { - se_tmr->tmr_lun = rcu_dereference(deve->se_lun); se_cmd->se_lun = rcu_dereference(deve->se_lun); se_lun = rcu_dereference(deve->se_lun); se_cmd->pr_res_key = deve->pr_res_key; diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h index b9cf71692acc..c9aada11a30c 100644 --- a/include/target/target_core_base.h +++ b/include/target/target_core_base.h @@ -398,7 +398,6 @@ struct se_tmr_req { void *fabric_tmr_ptr; struct se_cmd *task_cmd; struct se_device *tmr_dev; - struct se_lun *tmr_lun; struct list_head tmr_list; };