Commit 10c0cd38 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Martin K. Petersen

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: default avatarChristoph Hellwig <hch@lst.de>
Tested-by: default avatarFinn Thain <fthain@telegraphics.com.au>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent d47b3bd7
...@@ -104,7 +104,7 @@ static int esp_sbus_map_command_block(struct esp *esp) ...@@ -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_alloc_coherent(&op->dev, 16,
&esp->command_block_dma, &esp->command_block_dma,
GFP_ATOMIC); GFP_KERNEL);
if (!esp->command_block) if (!esp->command_block)
return -ENOMEM; return -ENOMEM;
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment