Message ID | 4b1522b5-31a2-9c7e-6b20-4e859c009345@sandisk.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show
Return-Path: <linux-rdma-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 1EB3F6082E for <patchwork-linux-rdma@patchwork.kernel.org>; Fri, 3 Jun 2016 18:39:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1531D27BFA for <patchwork-linux-rdma@patchwork.kernel.org>; Fri, 3 Jun 2016 18:39:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 09DB028334; Fri, 3 Jun 2016 18:39:55 +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 0D7D927BFA for <patchwork-linux-rdma@patchwork.kernel.org>; Fri, 3 Jun 2016 18:39:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932634AbcFCSjp (ORCPT <rfc822;patchwork-linux-rdma@patchwork.kernel.org>); Fri, 3 Jun 2016 14:39:45 -0400 Received: from mail-bl2on0080.outbound.protection.outlook.com ([65.55.169.80]:4843 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932299AbcFCSjo (ORCPT <rfc822;linux-rdma@vger.kernel.org>); Fri, 3 Jun 2016 14:39:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sandiskcorp.onmicrosoft.com; s=selector1-sandisk-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=uWzcPzfyjNgTRWUesGLA6xqZx/NjdbBh72eV6Kf/mYM=; b=DfSZYglQR2FJi6ssxUxIihvbucMgH28co+GHKeKn7KECBZmpxnVi7NRxLJZR5lKE58Mrj68kT4fzGdqr8W8U4jmEEX4M1/R4fPijkMWmKjL//8zxGWw2LjF+TLzpZ7brOzkmo1OynEzxqV117sfyyX1n3y1iCATrz+z0GgFxXTU= Received: from BN1PR02CA0040.namprd02.prod.outlook.com (10.141.56.40) by SN1PR0201MB1774.namprd02.prod.outlook.com (10.162.228.16) with Microsoft SMTP Server (TLS) id 15.1.506.9; Fri, 3 Jun 2016 18:39:40 +0000 Received: from BY2FFO11OLC010.protection.gbl (2a01:111:f400:7c0c::166) by BN1PR02CA0040.outlook.office365.com (2a01:111:e400:2a::40) with Microsoft SMTP Server (TLS) id 15.1.506.9 via Frontend Transport; Fri, 3 Jun 2016 18:39:40 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.21 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.21; helo=milsmgep15.sandisk.com; Received: from milsmgep15.sandisk.com (63.163.107.21) by BY2FFO11OLC010.mail.protection.outlook.com (10.1.15.21) with Microsoft SMTP Server (TLS) id 15.1.497.8 via Frontend Transport; Fri, 3 Jun 2016 18:39:39 +0000 Received: from MILHUBIP03.sdcorp.global.sandisk.com (Unknown_Domain [172.22.12.162]) (using TLS with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by (Symantec Messaging Gateway) with SMTP id 48.7D.03023.1FDC1575; Fri, 3 Jun 2016 11:35:29 -0700 (PDT) Received: from milsmgip12.sandisk.com (10.177.8.100) by MILHUBIP03.sdcorp.global.sandisk.com (10.177.9.96) with Microsoft SMTP Server id 14.3.279.2; Fri, 3 Jun 2016 11:39:38 -0700 X-AuditID: ac160c69-353ff70000000bcf-15-5751cdf1e67b Received: from exp-402881.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 10.53.03875.7EEC1575; Fri, 3 Jun 2016 11:39:38 -0700 (PDT) Subject: [PATCH 1/2] IB/srp: Always initialize use_fast_reg and use_fmr To: Doug Ledford <dledford@redhat.com> References: <4b4cc34a-eebb-8534-3d76-1cfb3fe961f5@sandisk.com> CC: Christoph Hellwig <hch@lst.de>, Sagi Grimberg <sagi@grimberg.me>, Laurence Oberman <loberman@redhat.com>, "Marciniszyn, Mike" <mike.marciniszyn@intel.com>, "linux-rdma@vger.kernel.org" <linux-rdma@vger.kernel.org> From: Bart Van Assche <bart.vanassche@sandisk.com> Message-ID: <4b1522b5-31a2-9c7e-6b20-4e859c009345@sandisk.com> Date: Fri, 3 Jun 2016 11:39:35 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: <4b4cc34a-eebb-8534-3d76-1cfb3fe961f5@sandisk.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrLLMWRmVeSWpSXmKPExsWyRoxnke7Hs4HhBhfbNS1env/AarFy9VEm i2eHelkszn94xWSx4X8ju8W61+9ZHNg8zt/byOKxeM9LJo/dNxvYPN7vu8rm8XmTXABrFJdN SmpOZllqkb5dAlfGwRf3WAueclWsXNvI3sD4naOLkZNDQsBE4sf/RsYuRi4OIYG5TBInFuxl gnC2M0qceNfOBFP18M8/ZojEUkaJZc1XGEESwgLuEvNu3WMHsUUE1CQ2vVoEZgsJ2Eks/LEZ rIFZ4D6jxPxbPWAJNgEjiW/vZ7KA2LxARSe7loANYhFQkVh19D8biC0qECHx6fcXVogaQYmT M5+A1XMK2Etsb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qXVY BgIAAA== X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:63.163.107.21; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(438002)(199003)(189002)(9170700003)(92566002)(6806005)(230700001)(229853001)(53416004)(87936001)(19580395003)(11100500001)(189998001)(50466002)(8676002)(2270400002)(106466001)(81166006)(33646002)(19580405001)(4326007)(86362001)(47776003)(36756003)(5003600100002)(8936002)(31696002)(83506001)(23676002)(50986999)(5008740100001)(4001350100001)(586003)(76176999)(2950100001)(2906002)(110136002)(31686004)(77096005)(65956001)(65806001)(54356999)(65826006); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR0201MB1774; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC010; 1:tj725bxbKdt6YcGa9GUmTTKBqluSmcUw1g6GqdvKAa/N+SuPCwNcARvc0G2WYGo204v2fjpPkLiCthUGf4ehovOJg4SLPMeb03hrAUFKwM5TFmqOxKb4S7Eehfvz1ZSROZ5xOkHiS6yqt/iVt4xNwHS5qjYEsg6ldiZPOIrWnqcl8D0yl2cvycejVVA6e0sdbAiriu0g9Ny4hAHUtAjIcxQotiVQ5eygXQgDwI0a3CvGUPw7OZoRK690hU1iYmVxvvhcgrzRRpnMQdceR+Bv8y10xu1xFgG2i/0pt06HzoAX42abo0WgDm0o3S95Wpk74YBDassYFrC5fm4NQ1E7VCtdjGB8l45Kp1PMASy61/FmxdC33MX9iJZPASoNPVjuS+JzaCF2RF1W3GWC1/VOfYB+Ry8KAlaNI2IHCyS0wHonlOSZNxdkS3qioCw5hlO1iFODrr7M+Rsa8GGrRsvphw== X-MS-Office365-Filtering-Correlation-Id: 98b61d4f-5181-492d-cc5f-08d38bde6bb8 X-Microsoft-Exchange-Diagnostics: 1; SN1PR0201MB1774; 2:tnESrfSZX+YLh1ZHux+JD/HPOj7eFTbfTQJETfKE5adWfo6ScxJCmlJR/zE5eAw0I9PXufosKppAelHqJp933lQVQPfoQ4TCa9n0yh0CjJWjSMrHjCLz3+jc2Es5DLFsTdVbMKUIxGJ3IcjpfjJXAEsh3eIjGCxhxF4OgeFGrgWjK5PTj5P0+3rKeD0mPm04; 3:ihU//Wwo+QV89vnmOpu0VdqSrqx4zbkLXHYpoYCbUProRjJjbZT+y/qO3yn5VK/ElLogNwC7M64y5/4LgyRJD/Cg8cOrsPBu+Bo6sKE+pcH3I6b1OmYWodl6RVBDD230lqzqrWGszol343A5E0W0oXensNn3kcurMEzuROE40nMAKg8kLZ6N5eR21UJ9GXBQgaKHvl0g7hSvJat7czFSJpYC+A640zglzgNvPEqnFb0A/Y9WbDhF4bAGnQZA4zJCi2SCqwtKbqw8aGfm0JNP5g== X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501002); SRVR:SN1PR0201MB1774; X-Microsoft-Exchange-Diagnostics: 1; SN1PR0201MB1774; 25:A6XRe867TjPAAu8+Nm8QLx03jCSQawuDx0Mn7qk77mYkeE1YbVH08noVntxMJuBgqmek9IjKdpeBtIqfzHNvZdegDPymyerbyyswz4dRigmwa6/z7q7q428Ahablfj0hptA+Egsl8GQuv1b0hsbjavMC0E1I4f4HlI3Wd+3qqZ95CN53v3/F58zee8W/uYomd53ajbR5z8TjslDeRqb7VUSk8UZjL+YHJ+AcS7tU+2TDQ8c3d9564V5SMszwg5MSV9b025R+bAo6cbdS2NyBOl/si7Csx8tNia1czUvhbsLpB9VJ6zIAfgn13p/KLsnO0lTVJBb2nhKowuls6kY9giP1BxO/umeNO1Qhvn4fk3HxgEgzho2p4fhnsGK1zO/5USDCN/zkPFBW13e0mS8FF4tW6PyqtN3zy7fEHQJQEbha1i0qwb0JWeyN8JJu52Z+Y2jnBJvji3a1Xltst+Q33RPlrhbNlQefuoFX+MW1sTeq0jUmd8niROAVjIZ4qEUT4/RKmLHhwKX2lAmjsf7m/u+mFhpdGa0EZxMYGzGM5zVDFEZ1CEQiDJ13d5q0wo2xz4lw8w7y5QPbJFchhHr0rvpTttPPlK3cHjdJJyu/XSfEQdYlzaNXTvCdHH/XDap3hzlh3o4LCvH6ElqRy/Vj4IkRjvmLulQ3LSHAbLJmRh/mFr3m+f+G9wZW85JZJ1lwWTi5c4OnlDhjUpioKaQV4YR6UVI+AQ3yuI+q3RfKNSrfxLfUjum7NqpQMwqmDvJZOAByBu5G6gEutdfxfp0wZg== X-Microsoft-Exchange-Diagnostics: 1; SN1PR0201MB1774; 20:q4jXiANm/zEu5LcLCW6cWpVPSuvL41Vcg/11J2vb4KGBSnUCcZCdzgfResgPBY54uPoDtjOb3PUFKj6flrB9Evy/0kX49tlswwKIVvNGRiwYWIzGziUW6ext4YVUYaZqPLA9uMuOwh2x1zcc234iUkvDGsA1H+cN4bfGOuAq8MqixF6Nz80+WWwkUod+Oj6UBq8EKmNeBlGPvHKZBe1HQZet6gLTe1+oJaf2LzXLAlMUoc/Y6EEr5WLJj8pRZxBpsi9/+huwTvqyAhJ9tfM0B14C7ACnopgN/a6g0qitUoZT+zBb3X2Jh26rm/5lM30i/8cSZFcgrAkphE3jYKAmpcUzuA8luY1op1e5pUJWcCSkBPV6GFmjBu8zybBhFm+vNzfZwReN6kz5vnOPIXNUHWqk5/gu0mR2ApMG2NjEjUp/pD2ItOIBMWunIkka0XtoMS5dziK0E24RcSpB70szdpv1n/XjJMnULjhZICgY42tS45OU8shtLMt3wMXE3dZU X-Microsoft-Antispam-PRVS: <SN1PR0201MB17740B163F862499416CDBCD81590@SN1PR0201MB1774.namprd02.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13016025)(13018025)(5005006)(8121501046)(3002001)(10201501046)(6055026); SRVR:SN1PR0201MB1774; BCL:0; PCL:0; RULEID:; SRVR:SN1PR0201MB1774; X-Microsoft-Exchange-Diagnostics: 1; SN1PR0201M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xz8NpLNC/YXK38W8Jkkx/rf7mjWOR0tnSgG0gSsnzUSCAx SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jun 2016 18:39:39.4709 (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.21]; Helo=[milsmgep15.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR0201MB1774 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: <linux-rdma.vger.kernel.org> X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
On Fri, Jun 03, 2016 at 11:39:35AM -0700, Bart Van Assche wrote: > Avoid that mapping fails due to use_fast_reg != 0 or use_fmr != 0 > if both member variables should be zero (if never_register == 1 or > if neither FMR nor FR is supported). Remove an initialization that > became superfluous due to changing a kmalloc() into a kzalloc() > call. > > Fixes: 509c5f33f4f6 ("IB/srp: Prevent mapping failures") > Cc: Sagi Grimberg <sai@grimberg.m> > Cc: Christoph Hellwig <hch@lst.de> > Cc: Laurence Oberman <loberman@redhat.com> > Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Looks fine,
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Looks fine,
Reviewed-by: Christoph Hellwig <hch@lst.de>
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c index 646de17..bc24b8d 100644 --- a/drivers/infiniband/ulp/srp/ib_srp.c +++ b/drivers/infiniband/ulp/srp/ib_srp.c @@ -3526,7 +3526,7 @@ static void srp_add_one(struct ib_device *device) int mr_page_shift, p; u64 max_pages_per_mr; - srp_dev = kmalloc(sizeof *srp_dev, GFP_KERNEL); + srp_dev = kzalloc(sizeof(*srp_dev), GFP_KERNEL); if (!srp_dev) return; @@ -3586,8 +3586,6 @@ static void srp_add_one(struct ib_device *device) IB_ACCESS_REMOTE_WRITE); if (IS_ERR(srp_dev->global_mr)) goto err_pd; - } else { - srp_dev->global_mr = NULL; } for (p = rdma_start_port(device); p <= rdma_end_port(device); ++p) {
Avoid that mapping fails due to use_fast_reg != 0 or use_fmr != 0 if both member variables should be zero (if never_register == 1 or if neither FMR nor FR is supported). Remove an initialization that became superfluous due to changing a kmalloc() into a kzalloc() call. Fixes: 509c5f33f4f6 ("IB/srp: Prevent mapping failures") Cc: Sagi Grimberg <sai@grimberg.m> Cc: Christoph Hellwig <hch@lst.de> Cc: Laurence Oberman <loberman@redhat.com> Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> --- drivers/infiniband/ulp/srp/ib_srp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)