OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0619317
)
block: for async O_DIRECT, mark us as polling if asked to
author
Jens Axboe
<axboe@kernel.dk>
Tue, 6 Nov 2018 21:29:11 +0000
(14:29 -0700)
committer
Jens Axboe
<axboe@kernel.dk>
Fri, 16 Nov 2018 15:34:59 +0000
(08:34 -0700)
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>
fs/block_dev.c
patch
|
blob
|
history
diff --git
a/fs/block_dev.c
b/fs/block_dev.c
index
9fe5667
..
e72b119
100644
(file)
--- a/
fs/block_dev.c
+++ b/
fs/block_dev.c
@@
-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);
if (!nr_pages) {
+ if (iocb->ki_flags & IOCB_HIPRI)
+ bio->bi_opf |= REQ_HIPRI;
+
qc = submit_bio(bio);
break;
}