]> git.baikalelectronics.ru Git - kernel.git/commit
blkcg: associate a blkg for pages being evicted by swap
authorDennis Zhou (Facebook) <dennisszhou@gmail.com>
Tue, 11 Sep 2018 18:41:31 +0000 (14:41 -0400)
committerJens Axboe <axboe@kernel.dk>
Sat, 22 Sep 2018 02:29:09 +0000 (20:29 -0600)
commitc9254afe624c6620a5911782224f0045d493b285
tree9600af0dbec0293940a7e0fdfea7e2b1f7dba7e3
parentdc713a38e6aee317ec9854b36158f5717ba5b341
blkcg: associate a blkg for pages being evicted by swap

A prior patch in this series added blkg association to bios issued by
cgroups. There are two other paths that we want to attribute work back
to the appropriate cgroup: swap and writeback. Here we modify the way
swap tags bios to include the blkg. Writeback will be tackle in the next
patch.

Signed-off-by: Dennis Zhou <dennisszhou@gmail.com>
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
include/linux/bio.h
mm/page_io.c