From patchwork Wed Feb 20 10:10:34 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 2167091 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 CE2E0DF230 for ; Wed, 20 Feb 2013 10:10:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933392Ab3BTKKj (ORCPT ); Wed, 20 Feb 2013 05:10:39 -0500 Received: from mail-bk0-f44.google.com ([209.85.214.44]:53389 "EHLO mail-bk0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933224Ab3BTKKg (ORCPT ); Wed, 20 Feb 2013 05:10:36 -0500 Received: by mail-bk0-f44.google.com with SMTP id j4so3552140bkw.31 for ; Wed, 20 Feb 2013 02:10:34 -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=qgGrL2s+ekfVLNEzNTTdtjnfjwbO3VPOh9JAtTJ5+ec=; b=GBZE+FDovlvVKTXtA47aCH4+lJXj8FCitC38ukkKFkdLp9s44cKrvEMQDUIYOu2MOg cOH9X1c1rSmlM6UIZl0/tEgHmt87Tw/M6vQQ6gHpVu4Ll86JkhUkTBPiWVCJsr4LJlJA iGEYeCGp6H7Tmrb1D1f1ZuFhF9Rp5NvCMJ1GKe1RT1KrAs53tlwQGtE9K/yC2nwVEoqh +FDr2GifC6jLFQF5IQhpB9BrNUKsFnGT7IUwuXrWuJ97zvsyEvFEhYGxhtTT540I4RDj fqDoFnTixoRNTp2qmgKkg6C9XQ2VS5Zw5NharRIGUcpVrxMvdDht/MKitxWMjXVX7xDb uibw== MIME-Version: 1.0 X-Received: by 10.205.138.12 with SMTP id iq12mr8187288bkc.101.1361355034181; Wed, 20 Feb 2013 02:10:34 -0800 (PST) Received: by 10.204.30.210 with HTTP; Wed, 20 Feb 2013 02:10:34 -0800 (PST) Date: Wed, 20 Feb 2013 18:10:34 +0800 Message-ID: Subject: [PATCH -next] IB/ipath: use GFP_ATOMIC 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_ATOMIC. Signed-off-by: Wei Yongjun --- 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_ATOMIC); if (ret < 0) { printk(KERN_ERR IPATH_DRV_NAME ": Could not allocate unit ID: error %d\n", -ret);