get_request — get a free request
|struct request_queue * q,|
|struct bio * bio,|
request_queue to allocate request from
RW and SYNC flags
bio to allocate request for (can be
Get a free request from
__GFP_DIRECT_RECLAIM is set in
this function keeps retrying under memory pressure and fails iff
q is dead.
Must be called with
q->queue_lock held and,
Returns ERR_PTR on failure, with
Returns request pointer on success, with
q->queue_lock *not held*.