summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2018-10-13 10:26:24 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2018-10-16 06:00:38 +0300
commit10c0cd38ce4cd2015a683e296596738adab9221f (patch)
treec4a2432190f35e40c4fc8c27db5ba86de9e6700d
parentd47b3bd797f158366a4b2193ae82e191a21c45f3 (diff)
downloadlinux-10c0cd38ce4cd2015a683e296596738adab9221f.tar.xz
scsi: sun_esp: don't use GFP_ATOMIC for command block allocation
esp_sbus_map_command_block is called straight from the probe routine without any locks held, so we can safely use GFP_KERNEL here. Signed-off-by: Christoph Hellwig <hch@lst.de> Tested-by: Finn Thain <fthain@telegraphics.com.au> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
-rw-r--r--drivers/scsi/sun_esp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/sun_esp.c b/drivers/scsi/sun_esp.c
index 747ee64a78e1..c7b60ed61c38 100644
--- a/drivers/scsi/sun_esp.c
+++ b/drivers/scsi/sun_esp.c
@@ -104,7 +104,7 @@ static int esp_sbus_map_command_block(struct esp *esp)
esp->command_block = dma_alloc_coherent(&op->dev, 16,
&esp->command_block_dma,
- GFP_ATOMIC);
+ GFP_KERNEL);
if (!esp->command_block)
return -ENOMEM;
return 0;