From patchwork Tue Aug 15 16:12:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sagi Grimberg X-Patchwork-Id: 9902149 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 54364602C9 for ; Tue, 15 Aug 2017 16:13:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4665A2889B for ; Tue, 15 Aug 2017 16:13:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3B7FC2889E; Tue, 15 Aug 2017 16:13:03 +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 DDD0B2889B for ; Tue, 15 Aug 2017 16:13:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752857AbdHOQNC (ORCPT ); Tue, 15 Aug 2017 12:13:02 -0400 Received: from bombadil.infradead.org ([65.50.211.133]:40765 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751031AbdHOQNB (ORCPT ); Tue, 15 Aug 2017 12:13:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=References:In-Reply-To:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=FBcf8KVNKWOTcYh57aS+fhCXmuUMQPRV7TCIIdjSXLg=; b=oG5HTBvt2T7YHRJNU2Xwo60qK GN2q4i/pyf2XSQpu+fwepNIzSQpN6mRcmK1QGEzWdYTlCm4NITI/B7pZjVgp5gvN2g/e91bPAzv9q V27MafvmyGfHwsq74nLLEEcYedVJ75et0GLWZzoFMdKm0c4gSHHOC6ZCDH2gppbXtrOh3wxRL4Uws pJP0B5jX/m9+Qc6SpvWFosc567dqvV1pOVMHL66vy3ZCha1sSGgcHtNtuWoxzgq0NerprT1RDV+76 r6ia3sBOYIzmLMS0gNm6upInB70cP/Txuw5Oohz2BR/zmVQYbWh3U+n1ECFBwvU8fZGM7MOVdG3/b M7haNq88Q==; Received: from bzq-82-81-101-184.red.bezeqint.net ([82.81.101.184] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.87 #1 (Red Hat Linux)) id 1dheSi-000808-IM; Tue, 15 Aug 2017 16:13:01 +0000 From: Sagi Grimberg To: Doug Ledford , linux-rdma@vger.kernel.org Cc: Steve Wise Subject: [PATCH 2/2] iwcm: Don't allocate iwcm workqueue with WQ_MEM_RECLAIM Date: Tue, 15 Aug 2017 19:12:54 +0300 Message-Id: <1502813574-6040-3-git-send-email-sagi@grimberg.me> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1502813574-6040-1-git-send-email-sagi@grimberg.me> References: <1502813574-6040-1-git-send-email-sagi@grimberg.me> 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 Its very likely that iwcm work execution will yield memory allocations (for example cm connection request). Reported-by: Steve Wise Signed-off-by: Sagi Grimberg Reviewed-by: Steve Wise --- drivers/infiniband/core/iwcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/core/iwcm.c b/drivers/infiniband/core/iwcm.c index 31661b5c1743..ff6d7bc44c1f 100644 --- a/drivers/infiniband/core/iwcm.c +++ b/drivers/infiniband/core/iwcm.c @@ -1181,7 +1181,7 @@ static int __init iw_cm_init(void) if (ret) pr_err("iw_cm: couldn't register netlink callbacks\n"); - iwcm_wq = alloc_ordered_workqueue("iw_cm_wq", WQ_MEM_RECLAIM); + iwcm_wq = alloc_ordered_workqueue("iw_cm_wq", 0); if (!iwcm_wq) return -ENOMEM;