From patchwork Thu Feb 21 05:45:06 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 2170551 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 74254DF215 for ; Thu, 21 Feb 2013 05:45:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751941Ab3BUFpJ (ORCPT ); Thu, 21 Feb 2013 00:45:09 -0500 Received: from mail-bk0-f42.google.com ([209.85.214.42]:44439 "EHLO mail-bk0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751498Ab3BUFpI (ORCPT ); Thu, 21 Feb 2013 00:45:08 -0500 Received: by mail-bk0-f42.google.com with SMTP id jk7so3913841bkc.15 for ; Wed, 20 Feb 2013 21:45:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to:cc :content-type; bh=zWtze7NEzk6aVv6Sls/U0Hg1VsYRGo/aede8uQMMtV8=; b=xu/xQhSDjPLYDaaly2US+WEEJr4k9SUg/SPXopqpncnW/13LVwqyfjnmhhu2CSPw4U prbopMkQ1w2iBUmiwFI918RcQHTFuWDsJcnSsXN8c9xCR+46OEXzMlbYK4gwU4C/81c0 JRHmJABHsLPh1zsuoa05e9mq1mvTqv9uPtKsidxuAZj1tMSNaDrusvLBCUAm0LNDmjdN zi4RTLdzSUpDlSJ1j3fQYODKW/QoCxAw8qxOIqbs+qzgIOf86WzT4jRLba3FMMJ8I+gt sB95lOMn1bFwX18GQwb7L7t2Yq0cjtenHXWQU7+GMTVZSOh4oCwMFMbBUJzGXObq2Ou0 40Nw== MIME-Version: 1.0 X-Received: by 10.204.147.82 with SMTP id k18mr9549402bkv.38.1361425507051; Wed, 20 Feb 2013 21:45:07 -0800 (PST) Received: by 10.204.30.210 with HTTP; Wed, 20 Feb 2013 21:45:06 -0800 (PST) Date: Thu, 21 Feb 2013 13:45:06 +0800 Message-ID: Subject: [PATCH -next v2] IB/ipath: use GFP_NOWAIT under spin lock From: Wei Yongjun To: infinipath@intel.com, roland@kernel.org, sean.hefty@intel.com, hal.rosenstock@gmail.com, tj@kernel.org Cc: yongjun_wei@trendmicro.com.cn, linux-rdma@vger.kernel.org Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org From: Wei Yongjun A spin lock is taken here so we should use GFP_NOWAIT like other case. Signed-off-by: Wei Yongjun Acked-by: Mike Marciniszyn Acked-by: Tejun Heo --- drivers/infiniband/hw/ipath/ipath_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 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/hw/ipath/ipath_driver.c b/drivers/infiniband/hw/ipath/ipath_driver.c index fcdaeea..03ed479 100644 --- a/drivers/infiniband/hw/ipath/ipath_driver.c +++ b/drivers/infiniband/hw/ipath/ipath_driver.c @@ -204,7 +204,7 @@ static struct ipath_devdata *ipath_alloc_devdata(struct pci_dev *pdev) idr_preload(GFP_KERNEL); spin_lock_irqsave(&ipath_devs_lock, flags); - ret = idr_alloc(&unit_table, dd, 0, 0, GFP_KERNEL); + ret = idr_alloc(&unit_table, dd, 0, 0, GFP_NOWAIT); if (ret < 0) { printk(KERN_ERR IPATH_DRV_NAME ": Could not allocate unit ID: error %d\n", -ret);