From patchwork Thu Dec 12 06:49:28 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 3329841 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 25DF0C0D4A for ; Thu, 12 Dec 2013 06:49:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 61F482080F for ; Thu, 12 Dec 2013 06:49:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 964E920804 for ; Thu, 12 Dec 2013 06:49:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751781Ab3LLGtc (ORCPT ); Thu, 12 Dec 2013 01:49:32 -0500 Received: from mail-bk0-f41.google.com ([209.85.214.41]:49939 "EHLO mail-bk0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751640Ab3LLGta (ORCPT ); Thu, 12 Dec 2013 01:49:30 -0500 Received: by mail-bk0-f41.google.com with SMTP id v15so709851bkz.14 for ; Wed, 11 Dec 2013 22:49:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=r/sj10ph3IfwRCGoisyRtD62QZwHl18Z3U3WoY6vUrg=; b=biF1rErqbaMDPoksR54HprLHhsDELQft12k58X36ToJgNPoIk2sEt/nL6qlf/4uogF vmxtQtAsyYdeL37PiMTzOgq3SsW3BKO2gBYGHvyh2j15QmzXQ97+0wJ7ExiA9TU9fV1h eMn5xhia2wDh53p9K8LHC6c307vU60ej/hDXa7XcpLsdqPhwgNqgoCSiX7leS8eyXDhr QrWqDsgOSe3s8UYQ2s//iijIyMzIXMa6tY8FiIq3eiJ9QpnDE4ETG6LEXnQEz4QD9g8O t+VrrwtS/XjJxNVFntVzBw0qqzoWavhX9A9fjUOCEKbE5u4E5GFycdZUwXmzjcIaV05v m0FQ== MIME-Version: 1.0 X-Received: by 10.204.127.77 with SMTP id f13mr28857bks.95.1386830968966; Wed, 11 Dec 2013 22:49:28 -0800 (PST) Received: by 10.204.74.130 with HTTP; Wed, 11 Dec 2013 22:49:28 -0800 (PST) Date: Thu, 12 Dec 2013 14:49:28 +0800 Message-ID: Subject: [PATCH -next] IB/usnic: use GFP_ATOMIC under spin lock From: Wei Yongjun To: umalhi@cisco.com, roland@kernel.org, sean.hefty@intel.com, hal.rosenstock@gmail.com 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 X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Wei Yongjun A spin lock is taken here so we should use GFP_ATOMIC. Signed-off-by: Wei Yongjun --- drivers/infiniband/hw/usnic/usnic_uiom.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/usnic/usnic_uiom.c b/drivers/infiniband/hw/usnic/usnic_uiom.c index c44acbc..d76ea56 100644 --- a/drivers/infiniband/hw/usnic/usnic_uiom.c +++ b/drivers/infiniband/hw/usnic/usnic_uiom.c @@ -557,7 +557,7 @@ struct device **usnic_uiom_get_dev_list(struct usnic_uiom_pd *pd) int i = 0; spin_lock(&pd->lock); - devs = kzalloc(sizeof(*devs)*(pd->dev_cnt + 1), GFP_KERNEL); + devs = kzalloc(sizeof(*devs)*(pd->dev_cnt + 1), GFP_ATOMIC); if (!devs) { devs = ERR_PTR(-ENOMEM); goto out;