]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit74b7c02a9bc124ee3df0d77880ee26db0a325516
tree9600af0dbec0293940a7e0fdfea7e2b1f7dba7e3
parent5bf9a1f3b4efef7e463105dde8bba4d2397909c2
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