From patchwork Tue Aug 15 19:20:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sagi Grimberg X-Patchwork-Id: 9902415 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 407BD60230 for ; Tue, 15 Aug 2017 19:20:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 34556288E5 for ; Tue, 15 Aug 2017 19:20:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 29297288E8; Tue, 15 Aug 2017 19:20: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=-5.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, URIBL_BLACK 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 CAB9C288E7 for ; Tue, 15 Aug 2017 19:20:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752597AbdHOTUr (ORCPT ); Tue, 15 Aug 2017 15:20:47 -0400 Received: from bombadil.infradead.org ([65.50.211.133]:45119 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752364AbdHOTUq (ORCPT ); Tue, 15 Aug 2017 15:20:46 -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=NMFEDtcpQyo8R6LrwkQXPrKuA48AXkQdtO4SMW2rk+U=; b=EruDHSoro0vGUfxZcdsSEKEkU 64SCghyhbATX8IlF1ERMpL4G1b8j1QxlNdmZhv/97kSLVrG9lyp67r6HNrCTnktw17XxfgUoUiG50 0g1sCMsaq8kVzfNv4reOnE0l/D8RX/DretubzCWHaWY3NjHzvN4Pa6FSj2sjO7wAZQpslsNS5T+Ey zGKQKuu4TPazwHXVsP3tsaYiWSzqinqlyd5zVcuAVVTH9aIJm0zIMv5qjHZpPXGvAcaWq9JKuI7Pb H24RGlXtvHiK+wD0sExl5xvinR2RDTuZmFK4xV2QtOXbdLVSJr2hfFuVpdpmp5oyPhcDnu8lYwc3Z WzMan3E1g==; 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 1dhhOP-0003JB-SK; Tue, 15 Aug 2017 19:20:46 +0000 From: Sagi Grimberg To: Doug Ledford , linux-rdma@vger.kernel.org Cc: Steve Wise Subject: [PATCH v2 2/2] iwcm: Don't allocate iwcm workqueue with WQ_MEM_RECLAIM Date: Tue, 15 Aug 2017 22:20:38 +0300 Message-Id: <1502824838-21745-3-git-send-email-sagi@grimberg.me> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1502824838-21745-1-git-send-email-sagi@grimberg.me> References: <1502824838-21745-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 Reviewed-by: Steve Wise Signed-off-by: Sagi Grimberg --- 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;