scsi: avoid unnecessary GFP_ATOMIC allocation in scsi_report_lun_scan
Signed-off-by: Rob Evers <revers@redhat.com> Reviewed-by: Ewan D. Milne <emilne@redhat.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
parent
6583f6fb82
commit
eb9eea01d4
1 changed files with 1 additions and 1 deletions
|
@ -1416,7 +1416,7 @@ static int scsi_report_lun_scan(struct scsi_target *starget, int bflags,
|
||||||
* prevent us from finding any LUNs on this target.
|
* prevent us from finding any LUNs on this target.
|
||||||
*/
|
*/
|
||||||
length = (max_scsi_report_luns + 1) * sizeof(struct scsi_lun);
|
length = (max_scsi_report_luns + 1) * sizeof(struct scsi_lun);
|
||||||
lun_data = kmalloc(length, GFP_ATOMIC |
|
lun_data = kmalloc(length, GFP_KERNEL |
|
||||||
(sdev->host->unchecked_isa_dma ? __GFP_DMA : 0));
|
(sdev->host->unchecked_isa_dma ? __GFP_DMA : 0));
|
||||||
if (!lun_data) {
|
if (!lun_data) {
|
||||||
printk(ALLOC_FAILURE_MSG, __func__);
|
printk(ALLOC_FAILURE_MSG, __func__);
|
||||||
|
|
Loading…
Add table
Reference in a new issue