]> git.baikalelectronics.ru Git - kernel.git/commit
blk: introduce REQ_SWAP
authorJosef Bacik <jbacik@fb.com>
Tue, 3 Jul 2018 15:14:53 +0000 (11:14 -0400)
committerJens Axboe <axboe@kernel.dk>
Mon, 9 Jul 2018 15:07:54 +0000 (09:07 -0600)
commita198b992cf800af652d9e908ff48da62825ece52
tree891b19b5a5c21e0a9daddcf281892184113265dc
parent893f4e1762dd67e20a899d524a422fdda8ec5763
blk: introduce REQ_SWAP

Just like REQ_META, it's important to know the IO coming down is swap
in order to guard against potential IO priority inversion issues with
cgroups.  Add REQ_SWAP and use it for all swap IO, and add it to our
bio_issue_as_root_blkg helper.

Signed-off-by: Josef Bacik <jbacik@fb.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/blk-cgroup.h
include/linux/blk_types.h
mm/page_io.c