Re: What am I doing wrong? submit_bio() suddenly stops working...

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jens Axboe
Date: Thursday, October 21, 2010 - 11:07 am

On 2010-10-21 19:41, Boaz Harrosh wrote:

Ted is using it to signal the reference from io:


which makes sense (even if you don't need it, as long as you don't deref
bio after calling submit_bio()).


Since __GFP_WAIT is set, it'll never return NULL. And as long as you
don't allocate more than 1 before doing you submit_bio(), it should be
OK in this case.

-- 
Jens Axboe

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: What am I doing wrong? submit_bio() suddenly stops wo ..., Jens Axboe, (Thu Oct 21, 11:07 am)