]> git.baikalelectronics.ru Git - kernel.git/commit
bfq: Fix the missing barrier in __bfq_entity_update_weight_prio
authorFam Zheng <zhengfeiran@bytedance.com>
Wed, 28 Aug 2019 03:54:51 +0000 (11:54 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 6 Sep 2019 20:33:48 +0000 (14:33 -0600)
commit2594e290694e3f847474c7e4204f8ce7e99d7c13
treee5054d61888dcf6f15a42f89d5e0a3018601538b
parent4aef8a2994d022c88d283cf462b83178435fd6d4
bfq: Fix the missing barrier in __bfq_entity_update_weight_prio

The comment of bfq_group_set_weight says the reading of prio_changed
should happen before the reading of weight, but a memory barrier is
missing here. Add it now, to match the smp_wmb() there.

Signed-off-by: Fam Zheng <zhengfeiran@bytedance.com>
Reviewed-by: Paolo Valente <paolo.valente@linaro.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bfq-wf2q.c