1BLK_ALLOC_QUEUE_NODE(9)          Block Devices         BLK_ALLOC_QUEUE_NODE(9)
2
3
4

NAME

6       blk_alloc_queue_node - allocate a request queue
7

SYNOPSIS

9       struct request_queue * blk_alloc_queue_node(gfp_t gfp_mask,
10                                                   int node_id,
11                                                   spinlock_t * lock);
12

ARGUMENTS

14       gfp_mask
15           memory allocation flags
16
17       node_id
18           NUMA node to allocate memory from
19
20       lock
21           For legacy queues, pointer to a spinlock that will be used to e.g.
22           serialize calls to the legacy .request_fn callback. Ignored for
23           blk-mq request queues.
24

NOTE

26       pass the queue lock as the third argument to this function instead of
27       setting the queue lock pointer explicitly to avoid triggering a
28       sporadic crash in the blkcg code. This function namely calls
29       blkcg_init_queue and the queue lock pointer must be set before
30       blkcg_init_queue is called.
31
33Kernel Hackers Manual 3.10         June 2019           BLK_ALLOC_QUEUE_NODE(9)
Impressum