diff options
author | Adam Manzanares <adam.manzanares@wdc.com> | 2018-05-22 19:52:21 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2018-05-31 16:50:56 +0200 |
commit | 087e566916ce2cde4f20a148607c9c3591f46f67 (patch) | |
tree | f5ce9e3f01b7772c0287da2fe9b59d1206f69386 /fs/iomap.c | |
parent | fs: blkdev set bio prio from kiocb prio (diff) | |
download | linux-087e566916ce2cde4f20a148607c9c3591f46f67.tar.xz linux-087e566916ce2cde4f20a148607c9c3591f46f67.zip |
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 <adam.manzanares@wdc.com>
Reviewed-by: Jeff Moyer <jmoyer@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/iomap.c')
-rw-r--r-- | fs/iomap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/iomap.c b/fs/iomap.c index afd163586aa0..65aae194aeca 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; |