On 6/22/18 12:17 PM, Matias Bjørling wrote:
>> +    /* Re-use allocated memory for intermediate lbas */
>> +    lba_list_mem = (((void *)rqd->ppa_list) + pblk_dma_ppa_size);
>> +
>> +    new_bio = bio_alloc(GFP_KERNEL, nr_holes);
> 
> 
> new_bio can return NULL.

It can't, not if __GFP_WAIT is set like it is for GFP_KERNEL.

-- 
Jens Axboe

Reply via email to