Thread (7 messages) 7 messages, 4 authors, 2018-06-26

Re: [RESEND PATCH] lightnvm: pblk: add asynchronous partial read

From: Jens Axboe <axboe@kernel.dk>
Date: 2018-06-22 18:21:07

On 6/22/18 12:17 PM, Matias Bjørling wrote:
quoted
+	/* 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help