Message ID | 20190501042831.5313-17-chaitanya.kulkarni@wdc.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | blktrace: add blktrace extension support | expand |
diff --git a/mm/page_io.c b/mm/page_io.c index 2e8019d0e048..950cc002f60a 100644 --- a/mm/page_io.c +++ b/mm/page_io.c @@ -24,6 +24,7 @@ #include <linux/blkdev.h> #include <linux/uio.h> #include <linux/sched/task.h> +#include <linux/ioprio.h> #include <asm/pgtable.h> static struct bio *get_swap_bio(gfp_t gfp_flags, @@ -40,6 +41,7 @@ static struct bio *get_swap_bio(gfp_t gfp_flags, bio_set_dev(bio, bdev); bio->bi_iter.bi_sector <<= PAGE_SHIFT - 9; bio->bi_end_io = end_io; + bio_set_prio(bio, get_current_ioprio()); for (i = 0; i < nr; i++) bio_add_page(bio, page + i, PAGE_SIZE, 0);
Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> --- mm/page_io.c | 2 ++ 1 file changed, 2 insertions(+)