Skip to content

Commit 88a8006

Browse files
Fengnan Changaxboe
authored andcommitted
io_uring: make fallocate be hashed work
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent 51a4598 commit 88a8006

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

io_uring/opdef.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ const struct io_issue_def io_issue_defs[] = {
216216
},
217217
[IORING_OP_FALLOCATE] = {
218218
.needs_file = 1,
219+
.hash_reg_file = 1,
219220
.prep = io_fallocate_prep,
220221
.issue = io_fallocate,
221222
},

0 commit comments

Comments
 (0)