We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14dc7a1 commit 5fd7a84Copy full SHA for 5fd7a84
block/blk-mq.c
@@ -4440,12 +4440,14 @@ static bool blk_mq_elv_switch_none(struct list_head *head,
4440
if (!qe)
4441
return false;
4442
4443
+ /* q->elevator needs protection from ->sysfs_lock */
4444
+ mutex_lock(&q->sysfs_lock);
4445
+
4446
INIT_LIST_HEAD(&qe->node);
4447
qe->q = q;
4448
qe->type = q->elevator->type;
4449
list_add(&qe->node, head);
4450
- mutex_lock(&q->sysfs_lock);
4451
/*
4452
* After elevator_switch_mq, the previous elevator_queue will be
4453
* released by elevator_release. The reference of the io scheduler
0 commit comments