“2e9ea1cece1274ccffc69d6be703fbff4a71eb9a”上不存在“paddle/legacy/cuda/include/stub/hl_cuda_stub.h”
提交 eb9eea01 编写于 作者: R Rob Evers 提交者: Christoph Hellwig

scsi: avoid unnecessary GFP_ATOMIC allocation in scsi_report_lun_scan

Signed-off-by: NRob Evers <revers@redhat.com>
Reviewed-by: NEwan D. Milne <emilne@redhat.com>
Signed-off-by: NChristoph Hellwig <hch@lst.de>
上级 6583f6fb
...@@ -1416,7 +1416,7 @@ static int scsi_report_lun_scan(struct scsi_target *starget, int bflags, ...@@ -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__);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册