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)
commit2268c0feb0ffb1c1bb6e1d4d5505d30f485aa77b
treee53dac6e15fa377325f7af425f4c8ecf997198e5
parentbeea9da07d8a6228a7e4a31a83f9478d513bf03f
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