From patchwork Fri Nov 20 21:33:04 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 7671381 Return-Path: X-Original-To: patchwork-linux-scsi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 95B389F2EC for ; Fri, 20 Nov 2015 21:33:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A5E3320499 for ; Fri, 20 Nov 2015 21:33:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1EEB420497 for ; Fri, 20 Nov 2015 21:33:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758669AbbKTVdK (ORCPT ); Fri, 20 Nov 2015 16:33:10 -0500 Received: from mail-by2on0099.outbound.protection.outlook.com ([207.46.100.99]:60285 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751747AbbKTVdI (ORCPT ); Fri, 20 Nov 2015 16:33:08 -0500 Received: from BLUPR02CA029.namprd02.prod.outlook.com (10.160.23.147) by BY2PR0201MB1573.namprd02.prod.outlook.com (10.163.154.11) with Microsoft SMTP Server (TLS) id 15.1.331.20; Fri, 20 Nov 2015 21:33:05 +0000 Received: from BY2FFO11FD001.protection.gbl (2a01:111:f400:7c0c::119) by BLUPR02CA029.outlook.office365.com (2a01:111:e400:8ad::19) with Microsoft SMTP Server (TLS) id 15.1.331.20 via Frontend Transport; Fri, 20 Nov 2015 21:33:05 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.173) smtp.mailfrom=sandisk.com; emulex.com; dkim=none (message not signed) header.d=none;emulex.com; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.173 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.173; helo=milsmgep12.sandisk.com; Received: from milsmgep12.sandisk.com (63.163.107.173) by BY2FFO11FD001.mail.protection.outlook.com (10.1.14.123) with Microsoft SMTP Server id 15.1.331.11 via Frontend Transport; Fri, 20 Nov 2015 21:33:04 +0000 Received: from MILHUBIP04.sdcorp.global.sandisk.com ( [172.22.12.162]) by milsmgep12.sandisk.com (Symantec Messaging Gateway) with SMTP id 2B.0F.32178.0919F465; Fri, 20 Nov 2015 13:33:04 -0800 (PST) Received: from milsmgip11.sandisk.com (10.177.8.100) by MILHUBIP04.sdcorp.global.sandisk.com (10.177.9.97) with Microsoft SMTP Server id 14.3.248.2; Fri, 20 Nov 2015 13:33:04 -0800 X-AuditID: ac160a69-f79f76d000007db2-28-564f9190acc0 Received: from [10.60.52.33] ( [10.177.8.100]) by milsmgip11.sandisk.com (Symantec Messaging Gateway) with SMTP id 42.3C.03643.0919F465; Fri, 20 Nov 2015 13:33:04 -0800 (PST) Subject: [PATCH 1/2] scsi_transport_fc: Introduce scsi_host_{get,put}() To: James Bottomley References: <564F910E.9070306@sandisk.com> CC: "Martin K. Petersen" , Christoph Hellwig , Hannes Reinecke , "linux-scsi@vger.kernel.org" , James Smart From: Bart Van Assche Message-ID: <564F9190.5090103@sandisk.com> Date: Fri, 20 Nov 2015 13:33:04 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <564F910E.9070306@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupmkeLIzCtJLcpLzFFi42JZI8azSHfCRP8wg/2d1hZ7Fk1isjg9YRGT xcZ+DovPnadZLbqv72CzWH78H5MDm8etQy/ZPaZNOsXmsXmFlsfHp7dYPDafrvb4vEkugC2K yyYlNSezLLVI3y6BK+P6yV1sBa1iFStajjM2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9 5PzcTYzgUOaM3MH4dKL5IUYmDk6pBsY9YbPzF76uUwnd5a3v/a/ge+N6E6Pj940KG7InFE01 +tT3OOtTwqoepsLmvPXX1QUvfPtr/cAyQ9Ngd43hkokHFx2TMdYL6GD0+Ghv9b2eOy2Vq6E7 6oqZVELulTilX7Y2Vx9t+Bb/cpZp5cUDMa/r/GNrjwlqczxd7uPzILfxDHtgHGfpaiWW4oxE Qy3mouJEAFWEe98VAgAA X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD001; 1:6iaExmt3gmtVfQVnFnl+xbeb2/yBCwPHj4K+TmV9YQB6J7XV3vscNp52VtEmc34I7am/sQ2RQdjyxOTCVedxiTjZV8m2USkLiTyECdaCs2S6wVZUGfmQc2tXby/J6ENtZGWLUH07V8MmOZVq0ichHbgTSesRF5HlsY5/F57AqbItsYnRF/uZCiLVIjnT3wM6nQLm2uK37MVZtPOrquntx1L3b9KWyuWlR8t2tbquPn4KRIysqasS+sdEqgiwngvqOoDnSg1NNWH7m7J1PTMvUp9/vCFfsVwoPvVY7p66td229umXQPCeug3GdwATbO0GbcOVc4u4TqiOn3xlo11sZC5VY8QdGumLGXvcOrpEi0MOx8bfWlpYbykhreeRK0ykjzuVdNSy6YizmTF0rCBA7w== X-Forefront-Antispam-Report: CIP:63.163.107.173; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(438002)(189002)(199003)(189998001)(110136002)(87936001)(5001960100002)(76176999)(87266999)(64126003)(54356999)(23676002)(2950100001)(230700001)(65816999)(83506001)(586003)(97736004)(36756003)(81156007)(4001350100001)(77096005)(69596002)(5008740100001)(47776003)(19580395003)(80316001)(11100500001)(19580405001)(65806001)(65956001)(59896002)(33656002)(50466002)(86362001)(50986999)(92566002)(229853001)(5007970100001)(106466001)(142933001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0201MB1573; H:milsmgep12.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0201MB1573; 2:Cb+YFkoWn0BjGAybMoP+/1lga9dBazmH779TT+2SZm2oHWyJgRDEClktBynWC4BbIoJM55W9oZKxYIKeuTuAFjYGLINbL1CoMksCZkyfyaYdauI7FMcN0+j5Ex+VeSekwPaLVkSy5x795sxn8gikFw==; 3:dzSxmau+Q27w+XsSNUuFsNIuydYZRhnOqZRaxHArbPudCTtLnFOrMbAbZpGpt7XnOf1LZP0qcl3mmJbB+ewUU3zpsyMVLmckmwrwzbiDgfaxsNE+tQ8T7mvXLA/1chSYd8VkAF3AETgDmxJWoKyRBKVHfP0A/J+dXab47dPm7Ji1rtIQNmJHPMk2hiZnEIfAk1wWJI69QIMieOT8O7fuDKtep5bNQHZGgb5t2CKm/dGyBr5fs/fy4U8J4yJHaJg8JuYDdtbOAdSPjOYEbctuag==; 25:0ctkzrv4IJRrgOr3tECO1aMkmzQWFV0YpjWbpABPHXgF5b7bgDSvUTEGq3qcmJk/zq48YCbQru2XpRFbTYL2W+QcsS7RB4UE0PJUiujZw3PbpuI0I0MDossR9+Z0FeqhdZL+hhygZsVv5PyWy31GHv4PwQUYjFjbheLoeH6gqMrNCJj6/5UlDL+KfQMfa1bHlKT/RMZe2tcc2MMP9/EjrZY2/m+6c980UMEbDnA1kmRCIt6qlWotCTfAyxIKIopk5y/puk2WEx5DCnr0dOlhSA== X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501001); SRVR:BY2PR0201MB1573; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0201MB1573; 20:ET5hnAsLcqo+wuFSyU4wUdzObtbBIwzTvbKFBAXvyvsSVvV7CUfSDjyzwm9hP9BHaIR6ZxwiS+5QdmbYY76Jt42VFimn8YG1ZX62icKCAnOxDmao6IGxl0YjTjpxo/Te4jqBSYRA29AvIp0o4huHAtFuX0FDh1KI/KdsKV2Eoj1ns5tDaNLjXPNWvO+KyXhfbRhnmuvBY/4M2M7MkjIEpD14islFKLm2eqdg2wwEWHaqf+jKHscar9i7LJu9UoyiUyebE3pHmDx3zPyVngsMYToVqENgFxsyryVAGFMms9qgF/OdAfMRCLCTL/a0BW4bXVQjqxDKWoLsjEFL5jTU1lwzs8mECvF32cqsnvSJRGCztAy3xMckTC4QA23Teh7UHwCF7I5sLiLeiQIHWFaMeovC9pE/kn/dyyHuMVyu5kP+A09Nmf0uknBIOKzjUEYoVzSOoudKtWALkGzH7qH8BVoOHLQ3VcFFtYi35LlSc3/xpTT21lqTeIRdyFaVMe8o; 4:GQVzLlJ0/sqAWQeqNlDHgYS+UQbb8s1QeL+Mqu0utU1RzeMUvrdxiPOsNRXZAm+fGmgzcfeffUByD/0lt0NZ07uW2iB5PF1LUPzAoS5qbA1UrWcm3tHgcR0LBmxazTDp3XKf4ygwM8CR46KlnCsas9ZwQ/ZenSM6M3P0Z+wGZ3xaxGGOzVVTHbSeeruFQD1E7IjIYJDptgXTO5RQXdnqtCovqPrRJdEinvdTCc6hjuUOPkwNpD167COaAZEp5dlASthBCQ3x2v1Ih2H9nAei/oHEKG/wnJhjCSnXwwbdPATX6bkxjJD+Ivsa1vPJuG1eDIUJ2bAV7IRc5n/BFKB8b5adoVEiHAoTi+zWd7L6K4Ok5G71yqoXtzCGq9i6c1fUK19zXV87qDs8uvv7tA9a2peJWjRIUXdGsi/j 5IJ5Gk4U8bdMk3fQtldnXS2yisgN X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(520078)(5005006)(8121501046)(10201501046)(3002001); SRVR:BY2PR0201MB1573; BCL:0; PCL:0; RULEID:; SRVR:BY2PR0201MB1573; X-Forefront-PRVS: 07665BE9D1 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCWTJQUjAyMDFNQjE1NzM7MjM6YzJtK3ZnajZiNjEyTUkycnlDM3lNR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UQPGQNwY=; 20:HAlbtMjo3+F06dDZZ3TUTRKZacR7jB/sXIUW46n3PAi5g3oAcRnZ6amiIfpcYtNUoflNCgBi/C5RtJofeo0KwqolsA5E1nmwhH0GZLfcGn8lmRBxinsmmXrId7SEza3BBAlI+aSJrn+ZDMMoLv/dhUSn9AbCG4tF9QlIXSu0Djw8LYQQ/Q9n/Pfs3uv+xjUo7pV0ONbWTX6kpgrMiIe6araPa3BQd1QnZIK7kA38AUIkRidUMbr+IEU4s4nEchoi SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Nov 2015 21:33:04.9936 (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.173]; Helo=[milsmgep12.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR0201MB1573 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Use scsi_host_{get,put}() instead of open-coding these functions. Compile-tested only. Signed-off-by: Bart Van Assche Cc: Christoph Hellwig Cc: Hannes Reinecke Cc: James Smart Cc: stable Reviewed-by: Christoph Hellwig Reviewed-by: Johannes Thumshirn --- drivers/scsi/scsi_transport_fc.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/scsi/scsi_transport_fc.c b/drivers/scsi/scsi_transport_fc.c index 24eaaf6..8a88226 100644 --- a/drivers/scsi/scsi_transport_fc.c +++ b/drivers/scsi/scsi_transport_fc.c @@ -2586,7 +2586,7 @@ fc_rport_final_delete(struct work_struct *work) transport_remove_device(dev); device_del(dev); transport_destroy_device(dev); - put_device(&shost->shost_gendev); /* for fc_host->rport list */ + scsi_host_put(shost); /* for fc_host->rport list */ put_device(dev); /* for self-reference */ } @@ -2650,7 +2650,7 @@ fc_rport_create(struct Scsi_Host *shost, int channel, else rport->scsi_target_id = -1; list_add_tail(&rport->peers, &fc_host->rports); - get_device(&shost->shost_gendev); /* for fc_host->rport list */ + scsi_host_get(shost); /* for fc_host->rport list */ spin_unlock_irqrestore(shost->host_lock, flags); @@ -2685,7 +2685,7 @@ delete_rport: transport_destroy_device(dev); spin_lock_irqsave(shost->host_lock, flags); list_del(&rport->peers); - put_device(&shost->shost_gendev); /* for fc_host->rport list */ + scsi_host_put(shost); /* for fc_host->rport list */ spin_unlock_irqrestore(shost->host_lock, flags); put_device(dev->parent); kfree(rport); @@ -3383,7 +3383,7 @@ fc_vport_setup(struct Scsi_Host *shost, int channel, struct device *pdev, fc_host->npiv_vports_inuse++; vport->number = fc_host->next_vport_number++; list_add_tail(&vport->peers, &fc_host->vports); - get_device(&shost->shost_gendev); /* for fc_host->vport list */ + scsi_host_get(shost); /* for fc_host->vport list */ spin_unlock_irqrestore(shost->host_lock, flags); @@ -3441,7 +3441,7 @@ delete_vport: transport_destroy_device(dev); spin_lock_irqsave(shost->host_lock, flags); list_del(&vport->peers); - put_device(&shost->shost_gendev); /* for fc_host->vport list */ + scsi_host_put(shost); /* for fc_host->vport list */ fc_host->npiv_vports_inuse--; spin_unlock_irqrestore(shost->host_lock, flags); put_device(dev->parent); @@ -3504,7 +3504,7 @@ fc_vport_terminate(struct fc_vport *vport) vport->flags |= FC_VPORT_DELETED; list_del(&vport->peers); fc_host->npiv_vports_inuse--; - put_device(&shost->shost_gendev); /* for fc_host->vport list */ + scsi_host_put(shost); /* for fc_host->vport list */ } spin_unlock_irqrestore(shost->host_lock, flags);