Message ID | 565DE45B.7060100@sandisk.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show
Return-Path: <linux-rdma-owner@kernel.org> X-Original-To: patchwork-linux-rdma@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 B1D979F30B for <patchwork-linux-rdma@patchwork.kernel.org>; Tue, 1 Dec 2015 18:18:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C9D50204F6 for <patchwork-linux-rdma@patchwork.kernel.org>; Tue, 1 Dec 2015 18:18:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D8DAC20452 for <patchwork-linux-rdma@patchwork.kernel.org>; Tue, 1 Dec 2015 18:18:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755177AbbLASSJ (ORCPT <rfc822;patchwork-linux-rdma@patchwork.kernel.org>); Tue, 1 Dec 2015 13:18:09 -0500 Received: from mail-bn1on0078.outbound.protection.outlook.com ([157.56.110.78]:21432 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752406AbbLASSI (ORCPT <rfc822;linux-rdma@vger.kernel.org>); Tue, 1 Dec 2015 13:18:08 -0500 Received: from BLUPR0201CA0035.namprd02.prod.outlook.com (10.163.116.45) by BLUPR02MB294.namprd02.prod.outlook.com (10.141.77.18) with Microsoft SMTP Server (TLS) id 15.1.331.20; Tue, 1 Dec 2015 18:18:05 +0000 Received: from BY2FFO11FD012.protection.gbl (2a01:111:f400:7c0c::129) by BLUPR0201CA0035.outlook.office365.com (2a01:111:e400:52e7::45) with Microsoft SMTP Server (TLS) id 15.1.337.19 via Frontend Transport; Tue, 1 Dec 2015 18:18:04 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.172) smtp.mailfrom=sandisk.com; infradead.org; dkim=none (message not signed) header.d=none;infradead.org; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.172 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.172; helo=milsmgep11.sandisk.com; Received: from milsmgep11.sandisk.com (63.163.107.172) by BY2FFO11FD012.mail.protection.outlook.com (10.1.14.130) with Microsoft SMTP Server id 15.1.331.11 via Frontend Transport; Tue, 1 Dec 2015 18:18:04 +0000 Received: from MILHUBIP03.sdcorp.global.sandisk.com ( [172.22.12.162]) by milsmgep11.sandisk.com (Symantec Messaging Gateway) with SMTP id 9B.BE.04667.C54ED565; Tue, 1 Dec 2015 10:18:04 -0800 (PST) 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.248.2; Tue, 1 Dec 2015 10:18:04 -0800 X-AuditID: ac160a68-f790b6d00000123b-48-565de45c0e1e Received: from [10.60.52.33] ( [10.177.8.100]) by milsmgip12.sandisk.com (Symantec Messaging Gateway) with SMTP id 8F.92.17166.B54ED565; Tue, 1 Dec 2015 10:18:03 -0800 (PST) Subject: [PATCH 2/6] IB/srp: Fix possible send queue overflow To: Doug Ledford <dledford@redhat.com> References: <565DE3EC.2070002@sandisk.com> CC: Sagi Grimberg <sagig@dev.mellanox.co.il>, Christoph Hellwig <hch@infradead.org>, Sebastian Parschauer <sebastian.riemer@profitbricks.com>, "linux-rdma@vger.kernel.org" <linux-rdma@vger.kernel.org> From: Bart Van Assche <bart.vanassche@sandisk.com> Message-ID: <565DE45B.7060100@sandisk.com> Date: Tue, 1 Dec 2015 10:18:03 -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: <565DE3EC.2070002@sandisk.com> Content-Type: text/plain; charset="utf-8"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y4tx4ozsUhJLCBUWLx1NPM XYwcHMICthJP2vJAakQE1CQ2vVrEDmILCWhJLG/bxghSzyxwjlFixeW7zCAJNgEjiW/vZ7KA 2LxARU8WHWUHmcMioCLx7YMeSFhUIEJi4oQGVogSQYmTM5+AlXMKaEs8//IRbAyzgLrEn3mX oGx5ie1v5zBPYOSfhaRlFpKyWUjKFjAyr2IUy83MKc5NzywwNNIrTsxLySzO1kvOz93ECA5a zqgdjNcnmh9iZOLglGpg9PRm46hKkqoVUvnyosmUpfrO3tZjX29X2xYWrJxz8+CBsjfqpecS 9nwKmLr24snPrMGPZrTzuz4RFeNVYlytZ1h++1GOokyTRnFfd7nBep8mhiea72X0S+ZuPnVl svHmmS/8b9x9oPmiSVDnkb1++oLUtUnHt366E2J5f2/8xGdSyyaXzerarcRSnJFoqMVcVJwI AMH8I5cKAgAA X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD012; 1:MVuvGzum6DLJeUsOtDHwWFcl1ilArL0P3XRoyB5nyKrAmdrdXgy6K85dwaFDjZn4eQuKxbedTea9caV5MJTtMfUHGvs8055RKdjtAaDJhKZEdHxLSVTuibt/KFGFvvz3qRuCFDoDnn4qD/lwhM8iCb6Wb/IXbtaTymyYQ80MDjHz+WVMEZm4DSyc6mCg9Am2lJpdJIefzh0BYCFJz4P7Q9r0E3y+0ZKv0p6ikk7b+rtI6HClMQykfLaCBMoJCqH+0aNIlNZZbznPK+0spVgvsKtS4h8YO6wpSLpig8rXo/hCA9ZJp00+ykQw8RxYzCoEFFjX+TbcfnRdhJ+eDQIcF4ynCMpqPaCKPb45ltNdEJn74UaXDtdTXWYbMe+D4LvECf4CrkSxqL0DKQ9LshR8hNR4OKEnhS9a/3hJYeFI9Xk= X-Forefront-Antispam-Report: CIP:63.163.107.172; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(438002)(199003)(189002)(230700001)(81156007)(59896002)(65956001)(87266999)(47776003)(65816999)(229853001)(87936001)(586003)(106466001)(1220700001)(50986999)(36756003)(33656002)(97736004)(77096005)(50466002)(189998001)(5008740100001)(64126003)(65806001)(5001960100002)(80316001)(1096002)(19580405001)(86362001)(4001350100001)(11100500001)(23676002)(76176999)(54356999)(69596002)(92566002)(19580395003)(83506001)(2950100001)(110136002); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR02MB294; H:milsmgep11.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BLUPR02MB294; 2:+vrDrSzX0F8+Gh6Ht/SK/A+igL2BINxeY7Ic45NjOVVrMqkPV/4a5aWT/I/L/LLofBEyyD209VDBI3sjhH6X05lIcCHV3Z0K+A/At2/U7/LcaCGbR9WHg2gd2uU2MFigiEZmq5wUHQlmoBLz5imO0A==; 3:NqtEzyokl01mEymb6KebG+chbgeEXGUNNF5KBkic8gwANtt7lcI4JE2p1ZU5A4/Hv6bJYWnWFGBTUcaLoxfKvR26Jb4MvLlyvSdftj8Q5A8ojmuH4LADmHdK02RMwzRWaebrb9Kfozp9NYFmi8iASqOCzUd+nPnZDPJlOEAqr97eahdVhLIw/boFMy9m2Snf/e4b9t0YNKd4Kx6RjiSM76hnPbGxbjxy558rG6/Snc/6DN/pp9NTXX7HupftprcwaVRKRzW3uMD1glqhdTtnPw==; 25:ne8XuJqHGd/BPxjJg8nE/jQnuCRofPuBRHRDxAGqYpgsO3ZajVXvUpo3um0FzrlnO4mxz1nLEIEcYkJaTcrjeyMPrqPoYjntQEawEDeBgZBMlpQeDvH1ZzxCtf+KnTgB1SMOY9QN+HyZRzeG4kLzGNa3NAuxZOmlz4AIYuR/JCFuaoKGWuF9x+735h+1a+4FsyLjL48Cs4c/UJc6kXDqtPnaLErBirgb5LeyldZl2ZBzHL7APnemDmE/6JnF9L1iwo+VGYC3GrijNJVmaz/aiQ== X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID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R02MB294.namprd02.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(34787635062028); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(520078)(5005006)(10201501046)(3002001); SRVR:BLUPR02MB294; BCL:0; PCL:0; RULEID:; SRVR:BLUPR02MB294; X-Forefront-PRVS: 07778E4001 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTFVQUjAyTUIyOTQ7MjM6QWh0Zk5nNGQ1RFdaMFdnUURqNUNMTTg0eEd6?= =?utf-8?B?RTNsd0tXK28vWWt0blZ5VmRIbnE4SDQ5djNRL21aakRQd0xIV3VKek1jZ285?= =?utf-8?B?eTd4YzJIMnNZaHVEUzZxNlovMUg0TThuMXRIZDFWWnpoZExGV3NGL3VMSU9C?= =?utf-8?B?b1ZITU1TSExzK2VWSlJhZTVrMmdtTC9qbXpLMkJYQ0QyZnZiK1FpWUcySU9h?= =?utf-8?B?bjJENkdBWTVzNldIR2lnakFQKy9VaTRTd2U0TGdmc05yN0swVWI0NDFxTmVU?= =?utf-8?B?QkMxYW50OWRPSldySEdoT2I0V2xoTVBMcVh3Mk45dlAwdjNuVmRYdFFHRUZT?= =?utf-8?B?K0pLNTlJNnpCSi9ENXl3SGNEbjRuTjJ4Y0tZcStydHRHOFljOGFTWXpDVlNS?= =?utf-8?B?c09pRzBDRHlReFBaNU9WVkdiTHRKOTBHbGlEd2tlMnFLazZWQlo4REV4QnBu?= =?utf-8?B?OTIvKzFYaUdTa04wa1FieWRwTzZiQjkwMmRSbHdnTE1EMmtYU1RhK3haVHUy?= =?utf-8?B?WTRNYlFGUmlpTnlSbjYyRjVtOUt2SjBKMWhENnp5bDdrdzRnNkd5ZlZFcUxJ?= =?utf-8?B?Visrd0ZnYkszczhJVWRleDZOajNmZFJNa3ZBUkFScWk5MkNvTDlRY2ZoUnhq?= =?utf-8?B?SkkvN1dFa3R4Q2FPK01ndWhNV3hHdVU1WHdMN0lab2JxdlJybT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VBQ8UaqsFpHJ7oBlEHSngfWZ5J5u8Qfm3Udar8ZuOa2fOXLu6keZ6iqNR5RTUYFmXjlWpEGv0302FabT7rYhCQG+3OQoL0gQfV9ZvA2Q==; 24:jG0TDt6Ri4sT++onpksh6GjrbAp994Prz7j5+SarljwiIaZQG50GguoqhEartI/FZgG76ozfEGWdlsNaMe91Pc2wQQuEgfEmd42QbhyvvQ0=; 20:08kENy2fczcD8S7I1tushWoJW0+84Vh65wshMJfnB2Nb6lUjFmbLW2uwinZR8EVHlyolVHipsa3lft20s9TbXz07bKYdp2D55fTonf3NIUNKQNy5uLuLZaYe2Wc2kn6dmgEAO3SHId3Rh9ZOihviVmPtFwLwavxFT2XMWrig7Uc6foSlg3gg2cjUvnYkdyoY151WZS9dGzjCpP16O0nDsoSg+Rjf0V/2qzOyO25j8HMSY6hgkTyPcSlCcFMUS2s7 SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Dec 2015 18:18:04.4576 (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.172]; Helo=[milsmgep11.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR02MB294 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-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_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 |
Looks good,
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 a074dad..c7a95d2 100644 --- a/drivers/infiniband/ulp/srp/ib_srp.c +++ b/drivers/infiniband/ulp/srp/ib_srp.c @@ -488,7 +488,7 @@ static int srp_create_ch_ib(struct srp_rdma_ch *ch) struct ib_qp *qp; struct ib_fmr_pool *fmr_pool = NULL; struct srp_fr_pool *fr_pool = NULL; - const int m = 1 + dev->use_fast_reg; + const int m = dev->use_fast_reg ? 3 : 1; struct ib_cq_init_attr cq_attr = {}; int ret;