From: Adam Manzanares Date: Tue, 22 May 2018 17:52:21 +0000 (-0700) Subject: fs: iomap dio set bio prio from kiocb prio X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=087e566916ce2cde4f20a148607c9c3591f46f67;p=linux.git fs: iomap dio set bio prio from kiocb prio Now that kiocb has an ioprio field copy this over to the bio when it is created from the kiocb during direct IO. Signed-off-by: Adam Manzanares Reviewed-by: Jeff Moyer Reviewed-by: Christoph Hellwig Signed-off-by: Al Viro --- diff --git a/fs/iomap.c b/fs/iomap.c index afd163586aa07..65aae194aecaa 100644 --- a/fs/iomap.c +++ b/fs/iomap.c @@ -919,6 +919,7 @@ iomap_dio_actor(struct inode *inode, loff_t pos, loff_t length, bio->bi_iter.bi_sector = (iomap->addr + pos - iomap->offset) >> 9; bio->bi_write_hint = dio->iocb->ki_hint; + bio->bi_ioprio = dio->iocb->ki_ioprio; bio->bi_private = dio; bio->bi_end_io = iomap_dio_bio_end_io;