Skip to contentSkip to conversation

MegaRAID: use GFP_ATOMIC under spin lock

PATCH New Dan Carpenter 1 participant 1 message Nov 17, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MegaRAID: use GFP_ATOMIC under spin lock

We're holding a spin_lock here so we should use GFP_ATOMIC.

drivers/scsi/megaraid/megaraid_mm.c +1 -1
index 25506c7..5205275 100644
@@ -568,7 +568,7 @@ mraid_mm_attach_buf(mraid_mmadp_t *adp, uioc_t *kioc, int xferlen)
 
 	kioc->pool_index	= right_pool;
 	kioc->free_buf		= 1;
-	kioc->buf_vaddr 	= pci_pool_alloc(pool->handle, GFP_KERNEL,
+	kioc->buf_vaddr		= pci_pool_alloc(pool->handle, GFP_ATOMIC,
 							&kioc->buf_paddr);
 	spin_unlock_irqrestore(&pool->lock, flags);