Name
blk_alloc_queue_node —
allocate a request queue
Synopsis
struct request_queue * blk_alloc_queue_node ( | gfp_t gfp_mask, |
| int node_id, |
| spinlock_t * lock) ; |
Arguments
gfp_mask
memory allocation flags
node_id
NUMA node to allocate memory from
lock
For legacy queues, pointer to a spinlock that will be used to e.g.
serialize calls to the legacy .request_fn
callback. Ignored for
blk-mq request queues.
Note
pass the queue lock as the third argument to this function instead of
setting the queue lock pointer explicitly to avoid triggering a sporadic
crash in the blkcg code. This function namely calls blkcg_init_queue
and
the queue lock pointer must be set before blkcg_init_queue
is called.