]> git.baikalelectronics.ru Git - kernel.git/commit
blkcg: introduce common blkg association logic
authorDennis Zhou <dennis@kernel.org>
Wed, 5 Dec 2018 17:10:29 +0000 (12:10 -0500)
committerJens Axboe <axboe@kernel.dk>
Sat, 8 Dec 2018 05:26:36 +0000 (22:26 -0700)
commit4d6b6fa927fc3f6ead41d2240ae6da3652ccccfb
treee53dac6e15fa377325f7af425f4c8ecf997198e5
parentfabdf6716a45c4b3ca257f3819053ff59e7f23cc
blkcg: introduce common blkg association logic

There are 3 ways blkg association can happen: association with the
current css, with the page css (swap), or from the wbc css (writeback).

This patch handles how association is done for the first case where we
are associating bsaed on the current css. If there is already a blkg
associated, the css will be reused and association will be redone as the
request_queue may have changed.

Signed-off-by: Dennis Zhou <dennis@kernel.org>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c
block/blk-iolatency.c
block/blk-throttle.c
include/linux/bio.h