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>
This commit is contained in:
Christoph Hellwig 2018-10-13 09:26:24 +02:00 committed by Martin K. Petersen
parent d47b3bd797
commit 10c0cd38ce

View File

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