Re: [PATCH] block: Fix a race between the throttling code and request queue initialization

2018-01-31 Thread Jens Axboe
On 1/31/18 12:13 PM, Bart Van Assche wrote: > Initialize the request queue lock earlier such that the following > race can no longer occur: > > blk_init_queue_node blkcg_print_blkgs > blk_alloc_queue_node (1) > q->queue_lock = &q->__queue_lock (2) > blkcg_init_queue(q) (3

[PATCH] block: Fix a race between the throttling code and request queue initialization

2018-01-31 Thread Bart Van Assche
Initialize the request queue lock earlier such that the following race can no longer occur: blk_init_queue_node blkcg_print_blkgs blk_alloc_queue_node (1) q->queue_lock = &q->__queue_lock (2) blkcg_init_queue(q) (3) spin_lock_irq(blkg->