Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934247AbdDGQP3 (ORCPT ); Fri, 7 Apr 2017 12:15:29 -0400 Received: from mail-bn3nam01on0076.outbound.protection.outlook.com ([104.47.33.76]:60544 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933834AbdDGQPU (ORCPT ); Fri, 7 Apr 2017 12:15:20 -0400 Authentication-Results: suse.de; dkim=none (message not signed) header.d=none;suse.de; dmarc=none action=none header.from=cavium.com; Date: Fri, 7 Apr 2017 12:15:00 -0400 (EDT) From: Chad Dupuis X-X-Sender: cdupuis@n5127mncfb42q1.qlogic.org To: Johannes Thumshirn cc: "Martin K . Petersen" , Linux SCSI Mailinglist , Linux Kernel Mailinglist Subject: Re: [PATCH] scsi: libfc: directly call ELS request handlers In-Reply-To: <20170407134224.14804-1-jthumshirn@suse.de> Message-ID: References: <20170407134224.14804-1-jthumshirn@suse.de> User-Agent: Alpine 2.00 (OSX 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Originating-IP: [4.15.251.130] X-ClientProxiedBy: BN6PR03CA0089.namprd03.prod.outlook.com (10.164.122.155) To BY1PR0701MB1724.namprd07.prod.outlook.com (10.162.111.143) X-MS-Office365-Filtering-Correlation-Id: dcfd9278-097a-44d4-9fba-08d47dd14839 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131423075)(201703031133081);SRVR:BY1PR0701MB1724; X-Microsoft-Exchange-Diagnostics: 1;BY1PR0701MB1724;3:fDQZqyXh0pgDwkMFYadL47B0SfTaQsMUjRzNiYNUSKS0kXzGF7xJ2+gzAlycc9Cp1cDfH6vCw5ScjuiqpZOhS15rabU+Jts01WrA/P/LFROSe/xKjo+1d3PcWJNRF7jVnNd5Ig5BukQ9k7O4/Rm1b+VSxdBQfL8Y+gUDF5264IFo4ISn2GKb8gKrymt97D91xYCVh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eVBdVYALvRKBpRCZW+d4P6/fImJImyi4P+3yJLTWHDcXsNwvhjHEDBzM1aUvKX5Oyu5bzqDxEd1+De8Ei5njgy7P+BYdGA82WwPOqXlA6Xs3qZhquZ+SuSjOwOLf9YW83m/zSCNzzSPWKrx0ci7fdJ/h+SpCDSTkH1ttmocFbceVol+xdpQPaf4XG0FP/me4F4pdVVcV7pb55aeyxcOQfqN1FSr9L63BlteZHZnfUcAYClVXnyjNLf8BU64YfymL6aSwEl9yZQKkMleKfofimvgqv0QPdz+ANMgx+JyhYwIQvS94zb2hvjzhyGL+zrSr4DyoYH7DosA6lAYAZSl74Wb3h3JakgKd056IvWM/syHQHiJYD X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93001095)(6041248)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(20161123564025)(20161123562025)(20161123560025)(6072148);SRVR:BY1PR0701MB1724;BCL:0;PCL:0;RULEID:;SRVR:BY1PR0701MB1724; X-Microsoft-Exchange-Diagnostics: 1;BY1PR0701MB1724;4:8xb8cidf2HqSC/LP1F+FaazmWhtUBGeMPyf7KBbuy+JIYdKEW98y/Mun940SIhoz0m9wrnXJ4k+9FoqE7l+rCj+tMMC2svEr/9kkEdGPc0nLmRofH5OK5xBRag/KfU/2slbUbzxAXevPUGk7IJI5aH5Yw6nwL1I8in6CCiXorpu/XdIySOtXtYzf58IZDOR3PGUH1Fb6tN9HnlvScKAlflyY9S8y+mjD1+RHkYFemKN7tUmtAeRsf4g7OUS8pTjb8eVceemhAYI3rjjP/ROpyzQKqLmzyrbbXQXIgRhx79UOJPQ9xRjcVv+TIh5jnLieM7YaOq+F2QAmzimy2Ri/9Vlh1Xo0Mvf57wD/uVuq92d6P6f/VzXYWhoZqOrxJApar8sR26mV2FAnh48Q5eRRQIdllEpLVOS8fWl8fuM9rUbGZuyBExODeNjKoCV/OavLxT3pi7GPHWP2aLoDZVgR36lPnS4TfuiXDGDhKDw84r0OEIq7IKIhSjps714Awrx5jsoAQbZq1v9XU5jMI/S4t1fVpvxSVQ7/HYJTnih4VdMkzSxqhRFo9iXWTfW7ZSJ5Ekdln60AXrwI5/zqDgTlWtH0gSzwzvl8KJQEzxnjUuczNbY6TIIjweB/lKDr9q/KTAOhjbfSyJ+yszfvKa7w8fEz2jZKKj7Tb0bStuTfTHyXBDHIDUZACZ21Z0cBBobvPKZvT9IRoZlmu4QDu4e3OySiBUfDIXDu/5srvbrHB9E= X-Forefront-PRVS: 0270ED2845 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(39840400002)(39450400003)(39400400002)(39410400002)(39850400002)(24454002)(9686003)(76176999)(2950100002)(86362001)(5660300001)(54356999)(6916009)(50986999)(6666003)(53416004)(38730400002)(23726003)(229853002)(53936002)(110136004)(3846002)(6116002)(5005980100005)(6506006)(4326008)(189998001)(305945005)(4001350100001)(55016002)(83506001)(6246003)(37156001)(81166006)(8676002)(42186005)(2906002)(47776003)(25786009)(7736002)(66066001);DIR:OUT;SFP:1101;SCL:1;SRVR:BY1PR0701MB1724;H:n5127mncfb42q1.qlogic.org;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY1PR0701MB1724;23:MtbfnPaWFsUcHD3FpvJiEYCxffHyfHPHaKuepdM?= =?us-ascii?Q?wyVr3Ti2TqEB7PEhfPZw96/9H2imAgffA6onunTQDhHBm9ejSvA5YN+hUzN8?= =?us-ascii?Q?NEcGamgVxeDlsCNZaTvnjvviw9GHRNdOPfqvDRw8Ky4oCBXJ6di0LYjoIT/H?= =?us-ascii?Q?yo6ugOJ8oyWBPMFAzF+YG08UJYjJrMUhTgN52GU7hOfymYOH7erJFzYZzvi/?= =?us-ascii?Q?8Q/y/5qep2rxI67dCD3cc4bKAs0UM4KBlhme8HEz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HMHuZweYCDWsWsqtkyxk6vs/Yb9qSWTjdJeq+8vyN+GAqdeSVBWNwbgrjtPXVQ== X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Apr 2017 16:15:16.9357 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0701MB1724 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 548 Lines: 19 On Fri, 7 Apr 2017, 1:42pm -0000, Johannes Thumshirn wrote: > Directly call ELS request handler functions in fc_lport_recv_els_req > instead of saving the pointer to the handler's receive function and then > later dereferencing this pointer. > > This makes the code a bit more obvious. > > Signed-off-by: Johannes Thumshirn > --- > drivers/scsi/libfc/fc_lport.c | 20 +++++++++----------- > 1 file changed, 9 insertions(+), 11 deletions(-) > A reasonable refactoring. Reviewed-by: Chad Dupuis