@@ -246,8 +246,6 @@ __blkdev_direct_IO_simple(struct kiocb *iocb, struct iov_iter *iter,
bio.bi_opf = dio_bio_write_op(iocb);
task_io_account_write(ret);
}
- if (iocb->ki_flags & IOCB_NOWAIT)
- bio.bi_opf |= REQ_NOWAIT;
if (iocb->ki_flags & IOCB_HIPRI)
bio_set_polled(&bio, iocb);
@@ -401,8 +399,6 @@ __blkdev_direct_IO(struct kiocb *iocb, struct iov_iter *iter, int nr_pages)
bio->bi_opf = dio_bio_write_op(iocb);
task_io_account_write(bio->bi_iter.bi_size);
}
- if (iocb->ki_flags & IOCB_NOWAIT)
- bio->bi_opf |= REQ_NOWAIT;
dio->size += bio->bi_iter.bi_size;
pos += bio->bi_iter.bi_size;
BugLink: https://launchpad.net/bugs/1946219 This reverts commit d6757b3e34831b7615edd3268b878536761f8b2e. After configuration multipath with io uring virtio_blk module is stuck with that commit applied. Revert it for now. Signed-off-by: Wen-chien Jesse Sung <jesse.sung@canonical.com> --- fs/block_dev.c | 4 ---- 1 file changed, 4 deletions(-)