projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51a4598
)
io_uring: make fallocate be hashed work
author
Fengnan Chang
<changfengnan@bytedance.com>
Mon, 23 Jun 2025 11:02:18 +0000
(19:02 +0800)
committer
Jens Axboe
<axboe@kernel.dk>
Mon, 23 Jun 2025 14:58:44 +0000
(08:58 -0600)
Like ftruncate and write, fallocate operations on the same file cannot
be executed in parallel, so it is better to make fallocate be hashed
work.
Signed-off-by: Fengnan Chang <changfengnan@bytedance.com>
Link:
https://lore.kernel.org/r/20250623110218.61490-1-changfengnan@bytedance.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/opdef.c
patch
|
blob
|
blame
|
history
diff --git
a/io_uring/opdef.c
b/io_uring/opdef.c
index 6e0882b051f93bae2974cc623678b199b39262e5..6de6229207a8b403bda999bf70d53e0077a95951 100644
(file)
--- a/
io_uring/opdef.c
+++ b/
io_uring/opdef.c
@@
-216,6
+216,7
@@
const struct io_issue_def io_issue_defs[] = {
},
[IORING_OP_FALLOCATE] = {
.needs_file = 1,
+ .hash_reg_file = 1,
.prep = io_fallocate_prep,
.issue = io_fallocate,
},