Repository navigation
Conversation
|
Upstream branch: 0fcb05b |
e6ca2c1 to
3d027d5
Compare
|
Upstream branch: 58161ea |
61164d3 to
554517d
Compare
3d027d5 to
90ea7e4
Compare
|
Upstream branch: c03c1a1 |
554517d to
adae0a7
Compare
90ea7e4 to
435b194
Compare
|
Upstream branch: 7be4bc5 |
adae0a7 to
11d8ab3
Compare
435b194 to
fd67522
Compare
|
Upstream branch: 17bb0e2 |
11d8ab3 to
0ea6841
Compare
fd67522 to
3b53a63
Compare
|
Upstream branch: 21a7f44 |
0ea6841 to
60b3419
Compare
3b53a63 to
5d84576
Compare
|
Upstream branch: 6b4b543 |
60b3419 to
478e683
Compare
5d84576 to
6582ed2
Compare
|
Upstream branch: fb2c3f4 |
478e683 to
0812b6c
Compare
6582ed2 to
b3a1abc
Compare
|
Upstream branch: d135ab4 |
0812b6c to
86e39f4
Compare
b3a1abc to
712496f
Compare
|
Upstream branch: c339f40 |
86e39f4 to
b2bb964
Compare
712496f to
a186880
Compare
|
Upstream branch: d89e1d1 |
1 similar comment
|
Upstream branch: d89e1d1 |
b2bb964 to
6a11604
Compare
a186880 to
46206a3
Compare
|
Upstream branch: 6628e7d |
6a11604 to
fd32329
Compare
46206a3 to
220bd96
Compare
|
Upstream branch: 05441d6 |
fd32329 to
be1c093
Compare
220bd96 to
6c4625e
Compare
|
Upstream branch: f66469d |
be1c093 to
36afd0b
Compare
6c4625e to
c7f678d
Compare
|
Upstream branch: d487237 |
36afd0b to
806bdcd
Compare
c7f678d to
6aa6cd1
Compare
elevator_set_default() runs from blk_register_queue() while the disk is still being added: the block device is not visible yet and uevents are suppressed, so no file system I/O can be issued. elevator_change() freezes the queue and cancels the dispatch work before switching, which is enough to drain dispatch activity from passthrough requests, as the comment in elevator_change() already states. elevator_switch() still quiesces the queue unconditionally, though, so every disk added with a default elevator waits for an RCU grace period. Commit 245a489 ("block: avoid to quiesce queue in elevator_init_mq") had removed this wait from the default elevator setup, and it came back when that setup was folded into elevator_change(). The wait is paid in full by callers that add disks one at a time. ublk adds the disk of a single-queue device from START_DEV, which takes 7.7ms at p50 in a 16 vCPU KVM guest, most of it in blk_mq_quiesce_queue() called from elevator_set_default(). Skip quiescing in elevator_switch() when setting the default elevator. ublk null target, 1000 single-queue devices created one by one: before after START_DEV p50 7.74ms 0.68ms START_DEV p99 14.61ms 1.32ms devices/s 114 971 Fixes: 1e44bed ("block: unifying elevator change") Cc: stable@vger.kernel.org Signed-off-by: Qiliang Yuan <odys.yuan@gmail.com> Reviewed-by: Ming Lei <tom.leiming@gmail.com> Reviewed-by: Nilay Shroff <nilay@linux.ibm.com>
Commit f8e111c ("block: don't call freeze queue in elevator_switch() and elevator_disable()") moved freezing the queue out of elevator_switch() into its callers, but kept the out_unfreeze label, which used to unquiesce and unfreeze the queue. The code at the label now unquiesces the queue but never unfreezes it, so the name is misleading. Rename the label to out_unquiesce. Suggested-by: Nilay Shroff <nilay@linux.ibm.com> Signed-off-by: Qiliang Yuan <odys.yuan@gmail.com>
|
Upstream branch: b3dfbde |
806bdcd to
b7f4558
Compare
Pull request for series with
subject: block: skip quiescing the queue for the default elevator
version: 2
url: https://patchwork.kernel.org/series/1186034/