Re: [PATCH v2 3/5] intel-iommu: integrate DMA CMA

From: Akinobu Mita
Date: Thu Jan 16 2014 - 18:29:00 EST


2014/1/16 Marek Szyprowski <m.szyprowski@xxxxxxxxxxx>:
>> @@ -3019,17 +3019,31 @@ static void *intel_alloc_coherent(struct device
>> *hwdev, size_t size,
>> flags |= GFP_DMA32;
>> }
>> - vaddr = (void *)__get_free_pages(flags, order);
>> - if (!vaddr)
>> + if (!(flags & GFP_ATOMIC)) {
>
>
> GFP_ATOMIC is not a flag, so please change the above check to:
> if (flags & __GFP_WAIT)

Thanks for your review. I'll fix it in the next version.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/