1. NAME

__get_request - get a free request

2. SYNOPSIS

struct request * __get_request(struct request_list *  rl , int  rw_flags , struct bio *  bio , gfp_t  gfp_mask );

3. ARGUMENTS

rl
    request list to allocate from

rw_flags
    RW and SYNC flags

bio
    bio to allocate request for (can be NULL)

gfp_mask
    allocation mask

4. DESCRIPTION

Get a free request from q. This function may fail under memory pressure or if 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