* [PATCH] io_uring: make fallocate be hashed work
@ 2025-06-23 11:02 Fengnan Chang
2025-06-23 14:59 ` Jens Axboe
0 siblings, 1 reply; 2+ messages in thread
From: Fengnan Chang @ 2025-06-23 11:02 UTC (permalink / raw)
To: axboe, io-uring; +Cc: Fengnan Chang
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>
---
io_uring/opdef.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/io_uring/opdef.c b/io_uring/opdef.c
index 6e0882b051f9..6de6229207a8 100644
--- 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,
},
--
2.39.2 (Apple Git-143)
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] io_uring: make fallocate be hashed work
2025-06-23 11:02 [PATCH] io_uring: make fallocate be hashed work Fengnan Chang
@ 2025-06-23 14:59 ` Jens Axboe
0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2025-06-23 14:59 UTC (permalink / raw)
To: io-uring, Fengnan Chang
On Mon, 23 Jun 2025 19:02:18 +0800, Fengnan Chang wrote:
> 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.
>
>
Applied, thanks!
[1/1] io_uring: make fallocate be hashed work
commit: 88a80066af1617fab444776135d840467414beb6
Best regards,
--
Jens Axboe
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-06-23 14:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-23 11:02 [PATCH] io_uring: make fallocate be hashed work Fengnan Chang
2025-06-23 14:59 ` Jens Axboe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox