Skip to content

Commit 087e566

Browse files
nmtadamAl Viro
authored andcommitted
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 <[email protected]> Reviewed-by: Jeff Moyer <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Al Viro <[email protected]>
1 parent 074111c commit 087e566

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/iomap.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -919,6 +919,7 @@ iomap_dio_actor(struct inode *inode, loff_t pos, loff_t length,
919919
bio->bi_iter.bi_sector =
920920
(iomap->addr + pos - iomap->offset) >> 9;
921921
bio->bi_write_hint = dio->iocb->ki_hint;
922+
bio->bi_ioprio = dio->iocb->ki_ioprio;
922923
bio->bi_private = dio;
923924
bio->bi_end_io = iomap_dio_bio_end_io;
924925

0 commit comments

Comments
 (0)