From patchwork Tue Feb 20 20:59:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10230837 Return-Path: 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 12C6D601E7 for ; Tue, 20 Feb 2018 20:59:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 037F4286EE for ; Tue, 20 Feb 2018 20:59:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EC24528824; Tue, 20 Feb 2018 20:59:48 +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.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI 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 07DF52889B for ; Tue, 20 Feb 2018 20:59:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751425AbeBTU7n (ORCPT ); Tue, 20 Feb 2018 15:59:43 -0500 Received: from mout.kundenserver.de ([212.227.17.24]:57449 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750799AbeBTU7m (ORCPT ); Tue, 20 Feb 2018 15:59:42 -0500 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue105 [212.227.15.145]) with ESMTPA (Nemesis) id 0MMnOB-1eqAoj0Af9-008Xof; Tue, 20 Feb 2018 21:59:26 +0100 From: Arnd Bergmann To: Doug Ledford , Jason Gunthorpe Cc: Arnd Bergmann , Leon Romanovsky , Sagi Grimberg , Bart Van Assche , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] RDMA/core: reduce IB_POLL_BATCH constant Date: Tue, 20 Feb 2018 21:59:09 +0100 Message-Id: <20180220205924.2035765-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:owxbkrc1+qZ9FU21l7WAkFJwu9XkQFkuMLAUgLy+5JswtDGLOG0 pmRwLqhFvivQICrXvz2eZWnaaOSJ+yiYOKUYvgmA/x8nBqaPEIcZTNtUnuedR0CuNKZFMY2 piNM1c036HsmszApvgSbuZRZsnYQm6iewHULiH96ujQU2cEBlki/3M1LTcnQ8QOdrNLTLk5 dumt6qd/rMHZn9HQHi8rQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:enJQUUyYUz8=:KCeCJaftbWVslYGlgMPfux nkoI0cqi4DrPy2NDbxy5emQvRtHZbrzCPACPJTbe3JRHxl5grFOIgwM33NNgh/51ZX1Fa1aPO GHKV0XNhTgquQdP8NSJnCteAQ2xkWYIFu+K6Iqj+oSO4jynJxacqqowue4D5p5MI0iN8RWvvL /i2CJMINXsTSNNph0gAEu6sGxv+rtgEkMgXgiWlm7WnSnk0ASArEKl/5PLIH4OsxeJnjvv1Sc ZaCSW5NF3v263TSbWXSb34ZE4aec3EJGiCX/WD8aEv+d+kfCt73z1NyN2hdIUIcite8Z5Bm/g ksK+g72hPJTt9uzBOFRv2ivZP7RCatbXa122kA4LAMUyhjmz3J7Wzbkc0mMZQ/8Eju82Zf0Ca SkQNrDvhzNUX5x/bBA6H0DIUQYgHIwOHsGesUZf0QduQyv/PwtVOg3bNDEVuYUNWfl2tjcA5U 3tRgH/RORwYwpi4Fw0IGQd144oHiFmNZu4uOSSvzGKLOvGJtUaba8ma6akcR3uK4F0pVSunXv b5XMfo6Vz7+bW3YDH9pAUsicLwpn8/O10bE86Oa3tDMQf3eZhO17FplUQRtkpsdIk1pdHzXw8 WfkLeUJLzvXPyN+FJNhZZqumDc5vYjWYvZaWopL8/E6Uy2Vn2ySJ6zQF+TCWy97FJ9fMsICyh BP/DqFPsPjizGVGNT4G0D67gdUqwkSekECOHZB6diW2VNAsNDDfBVGEnj6RS6ri6YSFOnHGTq qYSujN8Br9BXOy1VNxS/wk8vrabmkaoP1RD2Yg== Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The ib_wc structure has grown to much that putting 16 of them on the stack hits the warning limit for dangerous kernel stack consumption: drivers/infiniband/core/cq.c: In function 'ib_process_cq_direct': drivers/infiniband/core/cq.c:78:1: error: the frame size of 1032 bytes is larger than 1024 bytes [-Werror=frame-larger-than=] Using half that number brings us comfortably below that limit again. Fixes: 02d8883f520e ("RDMA/restrack: Add general infrastructure to track RDMA resources") Signed-off-by: Arnd Bergmann --- drivers/infiniband/core/cq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/core/cq.c b/drivers/infiniband/core/cq.c index bc79ca8215d7..2626adbb978e 100644 --- a/drivers/infiniband/core/cq.c +++ b/drivers/infiniband/core/cq.c @@ -16,7 +16,7 @@ #include /* # of WCs to poll for with a single call to ib_poll_cq */ -#define IB_POLL_BATCH 16 +#define IB_POLL_BATCH 8 /* # of WCs to iterate over before yielding */ #define IB_POLL_BUDGET_IRQ 256