projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42b2b2f
)
io_uring/rw: enable bio caches for IRQ rw
author
Pavel Begunkov
<asml.silence@gmail.com>
Wed, 2 Nov 2022 15:18:24 +0000
(15:18 +0000)
committer
Jens Axboe
<axboe@kernel.dk>
Wed, 16 Nov 2022 16:44:27 +0000
(09:44 -0700)
Now we can use IOCB_ALLOC_CACHE not only for iopoll'ed reads/write but
also for normal IRQ driven I/O.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link:
https://lore.kernel.org/r/fb8bd092ed5a4a3b037e84e4777074d07aa5639a.1667384020.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/rw.c
patch
|
blob
|
history
diff --git
a/io_uring/rw.c
b/io_uring/rw.c
index bb47cc4da713c3000c39ac755df3e27b6560d9d5..5c91cc80b348c8b3b464aca9635c369f2c7b8ad0 100644
(file)
--- a/
io_uring/rw.c
+++ b/
io_uring/rw.c
@@
-665,6
+665,7
@@
static int io_rw_init_file(struct io_kiocb *req, fmode_t mode)
ret = kiocb_set_rw_flags(kiocb, rw->flags);
if (unlikely(ret))
return ret;
+ kiocb->ki_flags |= IOCB_ALLOC_CACHE;
/*
* If the file is marked O_NONBLOCK, still allow retry for it if it
@@
-680,7
+681,7
@@
static int io_rw_init_file(struct io_kiocb *req, fmode_t mode)
return -EOPNOTSUPP;
kiocb->private = NULL;
- kiocb->ki_flags |= IOCB_HIPRI
| IOCB_ALLOC_CACHE
;
+ kiocb->ki_flags |= IOCB_HIPRI;
kiocb->ki_complete = io_complete_rw_iopoll;
req->iopoll_completed = 0;
} else {