Skip to content

Commit 074111c

Browse files
nmtadamAl Viro
authored andcommitted
fs: blkdev 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. Signed-off-by: Adam Manzanares <[email protected]> Reviewed-by: Jeff Moyer <[email protected]> Signed-off-by: Al Viro <[email protected]>
1 parent d9a08a9 commit 074111c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fs/block_dev.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ __blkdev_direct_IO_simple(struct kiocb *iocb, struct iov_iter *iter,
216216
bio.bi_write_hint = iocb->ki_hint;
217217
bio.bi_private = current;
218218
bio.bi_end_io = blkdev_bio_end_io_simple;
219+
bio.bi_ioprio = iocb->ki_ioprio;
219220

220221
ret = bio_iov_iter_get_pages(&bio, iter);
221222
if (unlikely(ret))
@@ -355,6 +356,7 @@ __blkdev_direct_IO(struct kiocb *iocb, struct iov_iter *iter, int nr_pages)
355356
bio->bi_write_hint = iocb->ki_hint;
356357
bio->bi_private = dio;
357358
bio->bi_end_io = blkdev_bio_end_io;
359+
bio->bi_ioprio = iocb->ki_ioprio;
358360

359361
ret = bio_iov_iter_get_pages(bio, iter);
360362
if (unlikely(ret)) {

0 commit comments

Comments
 (0)