All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next v2] IB/ipath: use GFP_NOWAIT under spin lock
@ 2013-02-21  5:45 Wei Yongjun
       [not found] ` <CAPgLHd965-++Kj6HE-wjHqpZjortmmCAvApSSwiXaX6YwWncHQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Wei Yongjun @ 2013-02-21  5:45 UTC (permalink / raw)
  To: infinipath-ral2JQCrhuEAvxtiuMwx3w, roland-DgEjT+Ai2ygdnm+yROfE0A,
	sean.hefty-ral2JQCrhuEAvxtiuMwx3w,
	hal.rosenstock-Re5JQEeQqe8AvxtiuMwx3w, tj-DgEjT+Ai2ygdnm+yROfE0A
  Cc: yongjun_wei-zrsr2BFq86L20UzCJQGyNP8+0UxHXcjY,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA

From: Wei Yongjun <yongjun_wei-zrsr2BFq86L20UzCJQGyNP8+0UxHXcjY@public.gmane.org>

A spin lock is taken here so we should use GFP_NOWAIT like
other case.

Signed-off-by: Wei Yongjun <yongjun_wei-zrsr2BFq86L20UzCJQGyNP8+0UxHXcjY@public.gmane.org>
---
 drivers/infiniband/hw/ipath/ipath_driver.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);


--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-02-22 22:58 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-21  5:45 [PATCH -next v2] IB/ipath: use GFP_NOWAIT under spin lock Wei Yongjun
     [not found] ` <CAPgLHd965-++Kj6HE-wjHqpZjortmmCAvApSSwiXaX6YwWncHQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-02-21 14:34   ` Marciniszyn, Mike
2013-02-21 15:33   ` Tejun Heo
     [not found]     ` <CAOS58YNcJ0gDmoR4M1tgJbqqzv0i=5EkoAr=OhoTSrozfw-ZtQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-02-21 15:34       ` Tejun Heo
     [not found]         ` <CAOS58YOHt7OaBHRwwqjLF8xZtVaj=BeFUXFAxW0owb4_BxC3Rg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-02-22  2:48           ` [PATCH -next v3] " Wei Yongjun
     [not found]             ` <CAPgLHd8_WyQiDpJwRWwNVPbSvVcpMj1bMu7h2QmfJpscd0LOFQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-02-22 22:16               ` Andrew Morton
     [not found]                 ` <20130222141642.247ee792.akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>
2013-02-22 22:21                   ` Tejun Heo
     [not found]                     ` <CAOS58YMrcCwh8RhnfRTsmbfa_K_h1=n2M6ws4=MHWDxpAAoXOw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-02-22 22:44                       ` Andrew Morton
     [not found]                         ` <20130222144451.ed48f015.akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>
2013-02-22 22:51                           ` Tejun Heo
     [not found]                             ` <CAOS58YMo3rABCLpKYRr7pRqeMo+rmGbbUJDj5xxE08pb-SyBqw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-02-22 22:58                               ` Tejun Heo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.