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: 128970 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp5056215ljc; Tue, 20 Feb 2018 12:59:48 -0800 (PST) X-Google-Smtp-Source: AH8x227ZKpLD+8FuBxH9G3brusuHBDS+Mj+mC1IiJ33C3WWowSARpzwiLKdRYWTIJBFg+ONnapRP X-Received: by 2002:a17:902:c24:: with SMTP id 33-v6mr852802pls.24.1519160388090; Tue, 20 Feb 2018 12:59:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519160388; cv=none; d=google.com; s=arc-20160816; b=M9zsF6YeoVZ1cZfXJiAKzoXw64rqORqiDSH6VGXEB5Dc2/3I0rr7LxgH5KnOuq7QUn y1pdsoA/cgF9sLNh8DH0h6TcVVx836oiTxKz0gf80yH9/0DxXs0wlwJyPB/c2EBEWEos MN5L/Jbf6GciFz5OWWyekfiLiC6XvlWtZ/doIvkz6JgoHV9bZvit9miF1WJyPmjusY+I 8y/tDVUtWJOpZao+PxYdPq5vi1prA9JBSDcJYLlN9Z4OTozVPMaXCCh92HiUimFsOCqh ZIpRWY5TNSSCitiYnArPNONjbHq4zk+gbBEQTN5jOm94CVPch16iR6nmZXqhLoDwgcSW xgYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=oV2vKtJyg52X8gTDEmtl2V8rviv4FJpsfBiM65Q6B/8=; b=OUvjdmIoyRVsmkpGinDOk5yS/QU00I7OYO1c1Jf074BHPWK2PjwgOV+Bi3KVTyVtiP jDHl2j0wBxUpJ2DrHEbKTqu/nBB8mBjRhc4aQ8ShXsWbfi/1xJ6kzBlPxiX4VgiESRz+ xlpyeiPvqyPMpKbeAa0yEFwe5Ueur9NTcFtMh8msnbIEF+l6lwXXHilFZcHOkZKnZrAv gZje6KhpKvSusrGmjtwNTJqiX0yF2RzAo1Fnv1EjAwws09oK02o0rA3fOvSA9Le9O5WB hVWJOmbVvhi9nbKo14LeUO6ASu+NYOAO9bVGtTVmZOdKtqz9L/idYg+gQzyUsnuPp5FJ LVXA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j15si164566pfn.111.2018.02.20.12.59.47; Tue, 20 Feb 2018 12:59:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751480AbeBTU7o (ORCPT + 28 others); Tue, 20 Feb 2018 15:59:44 -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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.9.0 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