Message ID | 20170202005853.23456-36-bart.vanassche@sandisk.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show
Return-Path: <target-devel-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 A4A2260236 for <patchwork-target-devel@patchwork.kernel.org>; Thu, 2 Feb 2017 00:59:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8FF5E2844A for <patchwork-target-devel@patchwork.kernel.org>; Thu, 2 Feb 2017 00:59:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 84C8D2845B; Thu, 2 Feb 2017 00:59: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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 E3B322844A for <patchwork-target-devel@patchwork.kernel.org>; Thu, 2 Feb 2017 00:59:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751400AbdBBA72 (ORCPT <rfc822;patchwork-target-devel@patchwork.kernel.org>); Wed, 1 Feb 2017 19:59:28 -0500 Received: from mail-bn3nam01on0064.outbound.protection.outlook.com ([104.47.33.64]:48130 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751337AbdBBA7I (ORCPT <rfc822;target-devel@vger.kernel.org>); Wed, 1 Feb 2017 19:59:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sandiskcorp.onmicrosoft.com; s=selector1-sandisk-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=FTQdaKs1dwxD6gXXjgPhYsGvSmQ0h2EMZQiItLCpWDM=; b=PZysGAZkK/mXEwQkjHNNT+VPxovcZtv7wIrTkcpQp0Meco7TJW8gvt4b5ZvVdd8esDPdupJfoUo8YyAz5fF2REEPaHmc8A4uNsytnzyJcGFjpOojRuElAvz6XeARV03N3zLd/u9hn8Wwb61B1HN9IE+c4+Cf25vlCSKF47PSpc0= Received: from BLUPR02CA039.namprd02.prod.outlook.com (10.160.23.157) by BY2PR02MB041.namprd02.prod.outlook.com (10.242.44.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16; Thu, 2 Feb 2017 00:59:05 +0000 Received: from BY2FFO11FD022.protection.gbl (2a01:111:f400:7c0c::115) by BLUPR02CA039.outlook.office365.com (2a01:111:e400:8ad::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.845.12 via Frontend Transport; Thu, 2 Feb 2017 00:59:05 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.225) smtp.mailfrom=sandisk.com; suse.de; dkim=none (message not signed) header.d=none;suse.de; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.225 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.225; helo=milsmgep14.sandisk.com; Received: from milsmgep14.sandisk.com (63.163.107.225) by BY2FFO11FD022.mail.protection.outlook.com (10.1.15.211) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.874.2 via Frontend Transport; Thu, 2 Feb 2017 00:59:04 +0000 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 AD.BC.01420.F0282985; Wed, 1 Feb 2017 16:49:19 -0800 (PST) Received: from milsmgip11.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, 1 Feb 2017 16:58:57 -0800 X-AuditID: 0ac94371-7ee9b9800001058c-ab-5892820f82cd Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id D5.73.16817.15482985; Wed, 1 Feb 2017 16:58:57 -0800 (PST) From: Bart Van Assche <bart.vanassche@sandisk.com> To: Bart Van Assche <bart.vanassche@sandisk.com> CC: <target-devel@vger.kernel.org>, Christoph Hellwig <hch@lst.de>, "David Disseldorp" <ddiss@suse.de> Subject: [PATCH v2 35/36] target: Introduce target_get_device() and target_put_device() Date: Wed, 1 Feb 2017 16:58:52 -0800 Message-ID: <20170202005853.23456-36-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170202005853.23456-1-bart.vanassche@sandisk.com> References: <20170202005853.23456-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrFLMWRmVeSWpSXmKPExsXCddJ5kS5/06QIgz/TdC2+/p/OYrFy9VEm i9alb5kcmD1232xg89h8utrj8ya5AOYoLpuU1JzMstQifbsEroxt89uZC6bxVvybMpGxgXE/ dxcjJ4eEgInEiQv7GLsYuTiEBJYySbxq62YFSQgJbGWU6FgTDFO0pH09O0TRZkaJxVNWMoMk 2ASMJL69n8kCYosIGEj87r3ACGIzC6RJ3N/+kwnEFhYIlzi56SVYDYuAisSeR8fBFvAKOEhM PX6NHWKBvMSutotgcU6g+OLjEDOFBOwlvv05ygJR84lF4lpPOUSvoMTJmU9YIHZJSBx88YIZ ol5d4uSS+UwTGIVmISmbhaRsASPTKkax3Myc4tz01AJDE73ixLyUzOJsveT83E2MkBAu3MH4 +rb3IUYBDkYlHl4BkUkRQqyJZcWVuYcYJTiYlUR4fRuBQrwpiZVVqUX58UWlOanFhxilOViU xHlbX/dHCAmkJ5akZqemFqQWwWSZODilGhibH+3/UHH+uOuyhCi7i0bP9v1oLXFTt9joUfEl 0Fx6z+Pf16JYp8R+m777hUnFXpGEp9z7n64O/9p7zt/m6Lxz7Ed/PN2govB1tr9fxYU+/Rdb 94RalXmtXJd/wi9HSUNnRlVy8K66qZ5nT/OXcx/euePgnykLHR6ed3z2+72OSunMC0nLNhyb rMRSnJFoqMVcVJwIAMCUYj5dAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprNJMWRmVeSWpSXmKPExsXCtZEjRTewZVKEwfH/GhYHf7YxWnz9P53F YuXqo0wWrUvfMjmweOy+2cDmMW3NeSaPzaerPT5vkgtgieKySUnNySxLLdK3S+DK2Da/nblg Gm/FvykTGRsY93N3MXJySAiYSCxpX8/excjFISSwkVHi6P8/zCAJNgEjiW/vZ7KA2CICBhK/ ey8wgtjMAmkSVz9cYwWxhQXCJU5ueglWwyKgKvH89juwOK+Ag8S2OS/ZIBbIS+xquwgW5wSK Lz4OMVNIwF7i25+jLBMYuRcwMqxiFMvNzCnOTc8sMDTUK07MS8ksztZLzs/dxAj2PmfkDsan E80PMTJxcEo1MFovMn/2Wt/6XsCiW3q7D6f+ZTI4ODcyL12YZx2fkn/w5QD7Pav4H15hmBh5 7Z3sff91s83LNvxUrllzdr1i/FmNfwfXFNrxWWyRro72tWeYXais9Dqt8qqoh+M6qyLdwgOM qlJ/fj33OxVkoZ16ZpHL54NbAsVU5/Lfq1/pKNp/h1d92e67r5RYijMSDbWYi4oTAcD59Iuu AQAA MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.225; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(39840400002)(39860400002)(39850400002)(39410400002)(39450400003)(2980300002)(438002)(199003)(189002)(4326007)(189998001)(106466001)(53936002)(97736004)(1076002)(356003)(36756003)(86362001)(33646002)(92566002)(7049001)(50466002)(5003940100001)(305945005)(48376002)(2270400002)(1691005)(69596002)(2906002)(50226002)(54906002)(5660300001)(77096006)(38730400001)(81166006)(8936002)(50986999)(8676002)(81156014)(626004)(68736007)(2950100002)(47776003)(6200100001)(6862003)(110136003)(6666003)(76176999); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR02MB041; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD022; 1:oWcVCqv8dM6GNmOz1MTkDuxv1FgDFpXMMj6khina/DiEyCLaG77gGUD28P866YvXGgiCgSXBigGnN4oDb1o6RcyOPcfKoLdmviMdZ6msAIWeEGaLbyMGI/qodN5RK30RVgmok5ppp0G9ySsTIJhhPbgPu7taYasnq26rgMpWG2n7FuW10cG9OtEKdRT2DmINdK2DOOlWrLqYBxIAf6Q29pkIWwmeW8rOk2SkHu2h86s2iAFAs4wh6IDII/s4Q7HO1wa38aPkbsGyqxbjfau2DpSIFxWQUl16d6W+cIuK4d8SlB2dg4Sz662d3ZtDcGhU7zuyikpJOAFgHCl27e+RUpRqLRc3wJUvmucPBUouMU3ZguV4M4QYta0EZg6y7X6p90qfkvmj51tcONzWycgPqC6dZjqFZOkecsqeK4KJXvZVdob0x7VMaqPujF569ZJ6rDchB9aKfeDsT4WMnYeayWUvLblhXsEOxLwuTe+KLTia1fSAww987ES3dWahblbt X-MS-Office365-Filtering-Correlation-Id: 441af851-306f-4f34-9898-08d44b06af34 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:BY2PR02MB041; X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB041; 3:/K4C6lq1+NbZoMrSvoiLAsZRFTPQUwwdD5gBElhbnudZ+qOIbMEfnXH2OYgKw32Ru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gZoYANtF8C/VOvMSyjSZXtb1mum2Yj6n+zKGGx9wPmCWVFSY0QYXohk/5ylPOlD9UbfvfF2+o0 X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB041; 31:ejhODiSdM7a8yWNcD5miEe/e6dgqwbIYm+7H6STjPqMM2oaSfHPfl9CkP+Q64HAvcpOSFIhMFkfDtL/ijJEfMwTHR0teFwCN7RRWG+Gf+G4Uic2SIHcIHjuolSgLyW3GAE/8eeYwFUHX6N9FABvbaftNXIJCoVglbEPH8Ez7t8++WKjPH0fQTMiC/dgnYakhC7mOglMnZw8TVavqnyIAmcvwv8dX7k/CYeACpBh5KgAhgDkJ9IWCcOGwmwpe3GStR+eqqXlMVuwMoz60jsm/WA==; 20:op/kBxwHlRy/h8W0zw570hCU272dtC/cGoimfUXM8jTZDBFsSvd88iV+50wzxTKjr4UsXjZM9QzV8x1CvFd4GfpiDs+AWH70EmU2k2ZwQ2MPI4HZi9bM5RRPB6zTvvIcZArqIPhKH88cDzo7EYUUg0IJvF+wJincm5Xlz97amKiCsqzzoqxyCUkQZCnBYiC7n+W6bnFf06ufkqCQhwpjJIIfPu/tNfo+fjnZm8VTovRpUU2ZH4VeXPL2nxux04I3yH1zDWEoaqfaRZ5HCjjQl/nJ3YwVYacB+01BvGurwJWymXWoM6TedZgh2oWhSZTgAgrJE+LNvLpsTrE7RCoFdkR8E9aj8wuuTFVbQLMCK6XqTOQsK7+z2tAf407wRl6BKlLvdqUFfwGTZlPtt4BTa0QtNKr36FAdYerypowCp0Ooth6Ecp9LEIiyI7zEdMdniJpqszYwY+bfdD6JnTR5HI/yFghW4iJ/Z+uGQ+TFkDB5Er7ARIolqYAqQn+lcbCo X-Microsoft-Antispam-PRVS: <BY2PR02MB04132A52AAADE2EAE97E161814C0@BY2PR02MB041.namprd02.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(13018025)(13016025)(10201501046)(3002001)(6055026)(6041248)(20161123555025)(20161123558025)(20161123562025)(20161123560025)(20161123564025)(6072148); SRVR:BY2PR02MB041; BCL:0; PCL:0; RULEID:; SRVR:BY2PR02MB041; X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB041; 4:lgvkX1hHznHyObDuO/R/RVxGQAY5cjdW3ssqfVAsvbufkgf9Gp1FSXoZciNbv695FGdkxnhxniP3yOZU9j3qs68TkjvcnJlJbFLShBBQnErudXGnfiQjqMioj6JUtHgnCfHKQ27wckUILS1S4lRqMXOQTauTufIlatsd6dgtteLPJxDGnreZ8bi6Fl2cojtB4fWPnw+dPyC/vrC4mBsybrn/5lE4IvtMgA47hVpVFWf1gZgN8HBDyQO5mmsX5qu6u7Gkb0G7mHes0CcurD9Xrp/YTFjHVpvwd1/vgKh+iooOcQZeYJJo6m/dWmHIFDFAwknXHkKJ3wrezpyYuO/Ihm/6IdkY3F+necYve+3ixoysyWh0AQOjMJTnu8pb214b4NzeNm3CIAW/3xDyvnEVFlpqHTBMD7MB1ZWtfGZiVFcLwHYEE8X9AuQG8UjeMnFZYy+CdY8oNEFGb7sQAzIXxOZZlRlTWOgEUoU3O9/ibs3r646YK4JYv/uoCnz3d3pEjldWnf2eI4dIJjSlmJRsZXsprXZsl2jOkUF5za5thGBWuR+dTV1RP+HVRSUJY19Wdzph/lMoOdU1doDs7W9Q8o4Ed/YQwASQTobE0zkqSQ7o0j3uT1yhK9w67NRRi62SJoZ5/gc/FofjXQaSvzRbpmzKyLGNzgp1Wh44HujHRWAZn1VY9r3B22Hda5wFLMcUYoFzwqP2cXunb1B/HZyliQ== X-Forefront-PRVS: 02065A9E77 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR02MB041; 23:9wEL4nHM1L6gcRMs8OHTALgqpOalhBOtNgQF7ibOfn?= =?us-ascii?Q?+Il3I+Gojs+xb7IdFacC4qrogr7IYMNTqDV0mOnh974Tq8bZluvmayt422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zfKsw9j+oZl3ZKpmHo5R6DdkvCabrhTd6DCAz99HU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB041; 7:+EFsbwa+OfmBhiMGFeazpAflUTzc7r0U369VBwqj+piWi4tsg8ds9zYZrY0JTl58DI22DKws/iWXX0KGWW7IPq4k1Ffbv6WInc9JuqNk86XA0Vmt3BjupmnmEPyzZd7AGnWc6Joi9q9VgGwvXO5WkTiNrz9bzaHXDtACK1Uini3DQpRZWBoURKdDXXlu/yl2KI0pclNQTXwwy++5brQkANY9evZdV4oaPevJF6ZyWSgexwvGHaLXB2pxr5Vuueij1BbCH0sQlP7AiGgcf2UAI4u2g0yA5bneNI8wVpeGpaYCzfXgrZ/tYqTHaPwmvjySUVQgHMs1cWmVeHmHBuxmVvuD9Ok+7yJV6DTSWTmZrCFP2EePKBNQYNZ2tO10+q2HKDYHxfpPO50h1pgRYXlQVr2j0TYaY+cxOVWDwjUEcqoXOUERUzZ2F1smVyFFC54gMMOA2T5eyMceeG0eJWflMOAXjqW44Y4DcPlmCtn8bb+gm8p8RfmvO1vfJzazLgEtdyHsaOPwZVPuJLJp90sU8w== X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Feb 2017 00:59:04.7273 (UTC) X-MS-Exchange-CrossTenant-Id: fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d; Ip=[63.163.107.225]; Helo=[milsmgep14.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR02MB041 Sender: target-devel-owner@vger.kernel.org Precedence: bulk List-ID: <target-devel.vger.kernel.org> X-Mailing-List: target-devel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/target/target_core_device.c b/drivers/target/target_core_device.c index 5431c51a70be..3d58b3a5dee6 100644 --- a/drivers/target/target_core_device.c +++ b/drivers/target/target_core_device.c @@ -947,6 +947,18 @@ int target_configure_device(struct se_device *dev) return ret; } +void target_get_device(struct se_device *dev) +{ + config_item_get(&dev->dev_group.cg_item); +} +EXPORT_SYMBOL(target_get_device); + +void target_put_device(struct se_device *dev) +{ + config_item_put(&dev->dev_group.cg_item); +} +EXPORT_SYMBOL(target_put_device); + void target_free_device(struct se_device *dev) { struct se_hba *hba = dev->se_hba; diff --git a/drivers/target/target_core_internal.h b/drivers/target/target_core_internal.h index 6f6cae81ab8e..503bea508ee8 100644 --- a/drivers/target/target_core_internal.h +++ b/drivers/target/target_core_internal.h @@ -86,6 +86,8 @@ int core_dev_setup_virtual_lun0(void); void core_dev_release_virtual_lun0(void); struct se_device *target_alloc_device(struct se_hba *hba, const char *name); int target_configure_device(struct se_device *dev); +void target_get_device(struct se_device *dev); +void target_put_device(struct se_device *dev); void target_free_device(struct se_device *); /* target_core_configfs.c */
These new functions will be used by the next patch in this series. Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Cc: Christoph Hellwig <hch@lst.de> Cc: David Disseldorp <ddiss@suse.de> --- drivers/target/target_core_device.c | 12 ++++++++++++ drivers/target/target_core_internal.h | 2 ++ 2 files changed, 14 insertions(+)