Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eb9eea01 authored by Rob Evers's avatar Rob Evers Committed by Christoph Hellwig
Browse files

scsi: avoid unnecessary GFP_ATOMIC allocation in scsi_report_lun_scan



Signed-off-by: default avatarRob Evers <revers@redhat.com>
Reviewed-by: default avatarEwan D. Milne <emilne@redhat.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 6583f6fb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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.
	 */
	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));
	if (!lun_data) {
		printk(ALLOC_FAILURE_MSG, __func__);