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)
commit0d1e0c7cd5909d6c6aa0957179318e13fcca971a
tree891b19b5a5c21e0a9daddcf281892184113265dc
parent903d23f0a354f226fa78f1c1c34b60aaf992e812
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