block: for async O_DIRECT, mark us as polling if asked to
Inherit the iocb IOCB_HIPRI flag, and pass on REQ_HIPRI for those kinds of requests. Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
0619317ff8
commit
d34513d384
|
@ -383,6 +383,9 @@ __blkdev_direct_IO(struct kiocb *iocb, struct iov_iter *iter, int nr_pages)
|
||||||
|
|
||||||
nr_pages = iov_iter_npages(iter, BIO_MAX_PAGES);
|
nr_pages = iov_iter_npages(iter, BIO_MAX_PAGES);
|
||||||
if (!nr_pages) {
|
if (!nr_pages) {
|
||||||
|
if (iocb->ki_flags & IOCB_HIPRI)
|
||||||
|
bio->bi_opf |= REQ_HIPRI;
|
||||||
|
|
||||||
qc = submit_bio(bio);
|
qc = submit_bio(bio);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue