get_request - get a free request
2. SYNOPSIS ▲
struct request * get_request(struct request_queue * q , int rw_flags , struct bio * bio , gfp_t gfp_mask );
3. ARGUMENTS ▲
request_queue to allocate request from
RW and SYNC flags
bio to allocate request for (can be NULL)
4. DESCRIPTION ▲
Get a free request from q. If __GFP_WAIT is set in gfp_mask, this function keeps retrying under memory pressure and fails iff q is dead.
Must be callled with q->queue_lock held and, Returns NULL on failure, with q->queue_lock held. Returns !NULL on success, with q->queue_lock *not held*.
5. COPYRIGHT ▲