Clean up alloc_cache allocations
cover Clean up alloc_cache allocations
Jens, Pavel,
The allocation paths that use alloc_cache duplicate the same code pattern, sometimes in a quite convoluted way. This series cleans up that code by folding the allocation into the cache code itself, making it just an allocator function, and keeping the cache policy invisible to callers. A bigger justification for doing this, beyond code simplicity, is that it makes it trivial to test the impact of disabling the cache and using slab directly, which I've used for slab improvement experiments. I think this is one step forward in the direction eventually lifting the alloc_cache into a proper magazine layer in slab out of io_uring.
It survived liburing testsuite, and when microbenchmarking the read-write path with mmtests and fio, I didn't observe any significant performance variation (there was actually a 2% gain, but that was within the variance of the test runs, making it not signficant and surely test noise).
I'm specifically interested, and happy to do so, if there are specific benchmarks you'd like me to run it against.
Thanks,
Gabriel Krisman Bertazi (9):
io_uring: Fold allocation into alloc_cache helper
io_uring: Add generic helper to allocate async data io_uring/futex: Allocate ifd with generic alloc_cache helper io_uring/poll: Allocate apoll with generic alloc_cache helper io_uring/uring_cmd: Allocate async data through generic helper io_uring/net: Allocate msghdr async data through helper io_uring/rw: Allocate async data through helper
io_uring: Move old async data allocation helper to header io_uring/msg_ring: Drop custom destructor
io_uring/alloc_cache.h | 7 +++++++ io_uring/futex.c | 13 +------------ io_uring/io_uring.c | 17 ++--------------- io_uring/io_uring.h | 22 ++++++++++++++++++++++ io_uring/msg_ring.c | 7 ------- io_uring/msg_ring.h | 1 - io_uring/net.c | 28 ++++++++++------------------ io_uring/poll.c | 13 +++++-------- io_uring/rw.c | 28 ++++++++-------------------- io_uring/timeout.c | 5 ++--- io_uring/uring_cmd.c | 20 ++------------------ io_uring/waitid.c | 4 ++-- 12 files changed, 61 insertions(+), 104 deletions(-)
Signature · 1 line
2.47.0
PATCH 1/9 io_uring: Fold allocation into alloc_cache helper
The allocation paths that use alloc_cache duplicate the same code pattern, sometimes in a quite convoluted way. Fold the allocation into the cache code itself, making it just an allocator function, and keeping the cache policy invisible to callers. Another justification for doing this, beyond code simplicity, is that it makes it trivial to test the impact of disabling the cache and using slab directly, which I've used for slab improvement experiments.
One relevant detail is that this allocates zeroed memory. Rationale is that it simplifies the handling of the embedded free_iov in some of the cached objects, and the performance impact shouldn't be meaningful, since we are supposed to be hitting the cache most of the time and the allocation is already the slow path.
--- io_uring/alloc_cache.h | 7 +++++++ 1 file changed, 7 insertions(+)
io_uring/alloc_cache.h +7 -0
@@ -30,6 +30,13 @@ static inline void *io_alloc_cache_get(struct io_alloc_cache *cache)return NULL ; } +static inline void *io_alloc_cache_alloc (struct io_alloc_cache *cache,gfp_t gfp) +{ +if (!cache->nr_cached) +return kzalloc (cache->elem_size, gfp); +return io_alloc_cache_get (cache); +} +/* returns false if the cache was initialized properly */ static inline bool io_alloc_cache_init (struct io_alloc_cache *cache,unsigned max_nr,size_t size)
Signature · 1 line
2.47.0
Jens Axboe
maintainerRe: [PATCH 1/9] io_uring: Fold allocation into alloc_cache helper
Quoted 5 lines · Gabriel Krisman Bertazi
io_uring/alloc_cache.h +0
-0
io_uring/alloc_cache.h static inline void *io_alloc_cache_get(struct io_alloc_cache *cache) · line 38
Quoted 9 lines
io_uring/alloc_cache.h +6
-0@@ -30,6 +30,13 @@ static inline void *io_alloc_cache_get(struct io_alloc_cache *cache)return NULL ; } +static inline void *io_alloc_cache_alloc (struct io_alloc_cache *cache,gfp_t gfp) +{ +if (!cache->nr_cached) +return kzalloc (cache->elem_size, gfp); +return io_alloc_cache_get (cache); +}
I don't think you want to use kzalloc here. The caller will need to clear what its needs for the cached path anyway, so has no other option than to clear/set things twice for that case.
Signature · 1 line
Jens Axboe
Re: [PATCH 1/9] io_uring: Fold allocation into alloc_cache helper
Quoted 9 lines · Jens Axboe
Quoted 8 lines · Gabriel Krisman Bertazi
io_uring/alloc_cache.h +0
-0@@ -30,6 +30,13 @@ static inline void *io_alloc_cache_get(struct io_alloc_cache *cache)return NULL ; }
Quoted 10 lines
io_uring/alloc_cache.h static inline void *io_alloc_cache_get(struct io_alloc_cache *cache) · line 38
Quoted 6 lines
io_uring/alloc_cache.h +6
-0+static inline void *io_alloc_cache_alloc (struct io_alloc_cache *cache,gfp_t gfp) +{ +if (!cache->nr_cached) +return kzalloc (cache->elem_size, gfp); +return io_alloc_cache_get (cache); +}I don't think you want to use kzalloc here. The caller will need to clear what its needs for the cached path anyway, so has no other option than to clear/set things twice for that case.
Hi Jens,
The reason I do kzalloc here is to be able to trust the value of rw->free_iov (io_rw_alloc_async) and hdr->free_iov (io_msg_alloc_async) regardless of where the allocated memory came from, cache or slab. In the callers (patch 6 and 7), we do:
+ hdr = io_uring_alloc_async_data(&ctx->netmsg_cache, req);
+ if (!hdr)
+ return NULL;
+
+ /* If the async data was cached, we might have an iov cached inside. */
+ if (hdr->free_iov) {
An alternative would be to return a flag indicating whether the allocated memory came from the cache or not, but it didn't seem elegant. Do you see a better way?
I also considered that zeroing memory here shouldn't harm performance, because it'll hit the cache most of the time.
Signature · 1 line
Gabriel Krisman Bertazi
Jens Axboe
maintainerRe: [PATCH 1/9] io_uring: Fold allocation into alloc_cache helper
Quoted 22 lines · Gabriel Krisman Bertazi
Quoted 9 lines · Jens Axboe
Quoted 8 lines · Gabriel Krisman Bertazi
io_uring/alloc_cache.h +0
-0@@ -30,6 +30,13 @@ static inline void *io_alloc_cache_get(struct io_alloc_cache *cache)return NULL ; }Quoted 10 lines
io_uring/alloc_cache.h static inline void *io_alloc_cache_get(struct io_alloc_cache *cache) · line 38
Quoted 6 lines
io_uring/alloc_cache.h +6
-0+static inline void *io_alloc_cache_alloc (struct io_alloc_cache *cache,gfp_t gfp) +{ +if (!cache->nr_cached) +return kzalloc (cache->elem_size, gfp); +return io_alloc_cache_get (cache); +}I don't think you want to use kzalloc here. The caller will need to clear what its needs for the cached path anyway, so has no other option than to clear/set things twice for that case.
Quoted 6 lines
Hi Jens,
The reason I do kzalloc here is to be able to trust the value of
rw->free_iov(io_rw_alloc_async) andhdr->free_iov(io_msg_alloc_async) regardless of where the allocated memory came from, cache or slab. In the callers (patch 6 and 7), we do:
I see, I guess that makes sense as some things are persistent in cache and need clearing upfront if freshly allocated.
Quoted 7 lines
(quoted diff) +6
-0+ hdr = io_uring_alloc_async_data(&ctx->netmsg_cache, req); + if (!hdr) + return NULL; + + /* If the async data was cached, we might have an iov cached inside. */ + if (hdr->free_iov) {
Quoted 6 lines
An alternative would be to return a flag indicating whether the allocated memory came from the cache or not, but it didn't seem elegant. Do you see a better way?
I also considered that zeroing memory here shouldn't harm performance, because it'll hit the cache most of the time.
It should hit cache most of the time, but if we exceed the cache size, then you will see allocations happen and churn. I don't like the idea of the flag, then we still need to complicate the caller. We can do something like slab where you have a hook for freshly allocated data only? That can either be a property of the cache, or passed in via io_alloc_cache_alloc()?
BTW, I'd probably change the name of that to io_cache_get() or io_cache_alloc() or something like that, I don't think we need two allocs in there.
Signature · 1 line
Jens Axboe
PATCH 2/9 io_uring: Add generic helper to allocate async data
In reply to Gabriel Krisman BertaziThis helper replaces io_alloc_async_data by using the folded allocation. Do it in a header to allow the compiler to decide whether to inline.
--- io_uring/io_uring.h | 9 +++++++++ 1 file changed, 9 insertions(+)
io_uring/io_uring.h +9 -0
@@ -222,6 +222,15 @@ static inline void io_req_set_res(struct io_kiocb *req, s32 res, u32 cflags) req->cqe.flags = cflags; } +static inline void *io_uring_alloc_async_data (struct io_alloc_cache *cache, +struct io_kiocb *req) +{ + req->async_data =io_alloc_cache_alloc (cache,GFP_KERNEL ); +if (req->async_data) + req->flags |=REQ_F_ASYNC_DATA ; +return req->async_data; +} +static inline bool req_has_async_data (struct io_kiocb *req) {return req->flags &REQ_F_ASYNC_DATA ;
Signature · 1 line
2.47.0
PATCH 3/9 io_uring/futex: Allocate ifd with generic alloc_cache helper
In reply to Gabriel Krisman BertaziInstead of open-coding the allocation, use the generic alloc_cache helper.
--- io_uring/futex.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-)
io_uring/futex.c +1 -12
@@ -251,17 +251,6 @@ static void io_futex_wake_fn(struct wake_q_head *wake_q, struct futex_q *q)io_req_task_work_add (req); } -static struct io_futex_data *io_alloc_ifd (struct io_ring_ctx *ctx) -{ -struct io_futex_data *ifd; - - ifd =io_alloc_cache_get (&ctx->futex_cache); -if (ifd) -return ifd; - -return kmalloc (sizeof (struct io_futex_data ),GFP_NOWAIT ); -} -int io_futexv_wait (struct io_kiocb *req,unsigned int issue_flags) { struct io_futex *iof = io_kiocb_to_cmd(req, struct io_futex);
@@ -331,7 +320,7 @@ int io_futex_wait(struct io_kiocb *req, unsigned int issue_flags) }io_ring_submit_lock (ctx, issue_flags); - ifd =io_alloc_ifd (ctx); + ifd =io_alloc_cache_alloc (&ctx->futex_cache,GFP_NOWAIT );if (!ifd) { ret = -ENOMEM ; goto done_unlock;
Signature · 1 line
2.47.0
PATCH 4/9 io_uring/poll: Allocate apoll with generic alloc_cache helper
In reply to Gabriel Krisman BertaziThis abstracts away the cache details to simplify the code.
--- io_uring/poll.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-)
io_uring/poll.c +5 -8
@@ -648,15 +648,12 @@ static struct async_poll *io_req_alloc_apoll(struct io_kiocb *req,if (req->flags &REQ_F_POLLED ) { apoll = req->apoll;kfree (apoll->double_poll); - }else if (!(issue_flags &IO_URING_F_UNLOCKED )) { - apoll =io_alloc_cache_get (&ctx->apoll_cache); -if (!apoll) - goto alloc_apoll; - apoll->poll.retries =APOLL_MAX_RETRY ; }else { -alloc_apoll: - apoll =kmalloc (sizeof (*apoll),GFP_ATOMIC ); -if (unlikely (!apoll)) +if (!(issue_flags &IO_URING_F_UNLOCKED )) + apoll =io_alloc_cache_alloc (&ctx->apoll_cache,GFP_ATOMIC ); +else + apoll =kmalloc (sizeof (*apoll),GFP_ATOMIC ); +if (!apoll)return NULL ; apoll->poll.retries =APOLL_MAX_RETRY ; }
Signature · 1 line
2.47.0
PATCH 5/9 io_uring/uring_cmd: Allocate async data through generic helper
In reply to Gabriel Krisman BertaziThis abstracts away the cache details and simplify the code.
--- io_uring/io_uring.h | 1 + io_uring/uring_cmd.c | 20 ++------------------ 2 files changed, 3 insertions(+), 18 deletions(-)
io_uring/io_uring.h +1 -0
@@ -8,6 +8,7 @@#include <linux/poll.h> #include <linux/io_uring_types.h> #include <uapi/linux/eventpoll.h> +#include "alloc_cache.h" #include "io-wq.h" #include "slist.h" #include "filetable.h"
io_uring/uring_cmd.c +2 -18
@@ -16,22 +16,6 @@#include "rsrc.h" #include "uring_cmd.h" -static struct uring_cache *io_uring_async_get (struct io_kiocb *req) -{ -struct io_ring_ctx *ctx = req->ctx; -struct uring_cache *cache; - - cache =io_alloc_cache_get (&ctx->uring_cache); -if (cache) { - req->flags |=REQ_F_ASYNC_DATA ; - req->async_data = cache; -return cache; - } -if (!io_alloc_async_data (req)) -return req->async_data; -return NULL ; -} -static void io_req_uring_cleanup (struct io_kiocb *req,unsigned int issue_flags) { struct io_uring_cmd *ioucmd = io_kiocb_to_cmd(req, struct io_uring_cmd);
@@ -181,8 +165,8 @@ static int io_uring_cmd_prep_setup(struct io_kiocb *req, struct io_uring_cmd *ioucmd = io_kiocb_to_cmd(req, struct io_uring_cmd);struct uring_cache *cache; - cache =io_uring_async_get (req); -if (unlikely (!cache)) + cache =io_uring_alloc_async_data (&req->ctx->uring_cache, req); +if (!cache)return -ENOMEM ;if (!(req->flags &REQ_F_FORCE_ASYNC )) {
Signature · 1 line
2.47.0
PATCH 6/9 io_uring/net: Allocate msghdr async data through helper
In reply to Gabriel Krisman BertaziThis abstracts away the cache details.
--- io_uring/net.c | 28 ++++++++++------------------ 1 file changed, 10 insertions(+), 18 deletions(-)
io_uring/net.c +10 -18
@@ -160,25 +160,17 @@ static struct io_async_msghdr *io_msg_alloc_async(struct io_kiocb *req)struct io_ring_ctx *ctx = req->ctx;struct io_async_msghdr *hdr; - hdr =io_alloc_cache_get (&ctx->netmsg_cache); -if (hdr) { -if (hdr->free_iov) { -kasan_mempool_unpoison_object (hdr->free_iov, - hdr->free_iov_nr *sizeof (struct iovec )); - req->flags |=REQ_F_NEED_CLEANUP ; - } - req->flags |=REQ_F_ASYNC_DATA ; - req->async_data = hdr; -return hdr; - } - -if (!io_alloc_async_data (req)) { - hdr = req->async_data; - hdr->free_iov_nr =0 ; - hdr->free_iov =NULL ; -return hdr; + hdr =io_uring_alloc_async_data (&ctx->netmsg_cache, req); +if (!hdr) +return NULL ; + +/* If the async data was cached, we might have an iov cached inside. */ +if (hdr->free_iov) { +kasan_mempool_unpoison_object (hdr->free_iov, + hdr->free_iov_nr *sizeof (struct iovec )); + req->flags |=REQ_F_NEED_CLEANUP ; } -return NULL ; +return hdr; }/* assign new iovec to kmsg, if we need to */
Signature · 1 line
2.47.0
PATCH 7/9 io_uring/rw: Allocate async data through helper
In reply to Gabriel Krisman BertaziThis abstract away the cache details.
--- io_uring/rw.c | 28 ++++++++-------------------- 1 file changed, 8 insertions(+), 20 deletions(-)
io_uring/rw.c +8 -20
@@ -213,28 +213,16 @@ static int io_rw_alloc_async(struct io_kiocb *req)struct io_ring_ctx *ctx = req->ctx;struct io_async_rw *rw; - rw =io_alloc_cache_get (&ctx->rw_cache); -if (rw) { -if (rw->free_iovec) { -kasan_mempool_unpoison_object (rw->free_iovec, - rw->free_iov_nr *sizeof (struct iovec )); - req->flags |=REQ_F_NEED_CLEANUP ; - } - req->flags |=REQ_F_ASYNC_DATA ; - req->async_data = rw; - goto done; - } - -if (!io_alloc_async_data (req)) { - rw = req->async_data; - rw->free_iovec =NULL ; - rw->free_iov_nr =0 ; -done: + rw =io_uring_alloc_async_data (&ctx->rw_cache, req); +if (!rw) +return -ENOMEM ; +if (rw->free_iovec) { +kasan_mempool_unpoison_object (rw->free_iovec, + rw->free_iov_nr *sizeof (struct iovec )); + req->flags |=REQ_F_NEED_CLEANUP ; rw->bytes_done =0 ; -return 0 ; } - -return -ENOMEM ; +return 0 ; }static int io_prep_rw_setup (struct io_kiocb *req,int ddir,bool do_import)
Signature · 1 line
2.47.0
PATCH 8/9 io_uring: Move old async data allocation helper to header
In reply to Gabriel Krisman BertaziThere are two remaining uses of the old async data allocator that do not rely on the alloc cache. I don't want to make them use the new allocator helper because that would require a if(cache) check, which will result in dead code for the cached case (for callers passing a cache, gcc can't prove the cache isn't NULL, and will therefore preserve the check. Since this is an inline function and just a few lines long, keep a second helper to deal with cases where we don't have an async data cache.
No functional change intended here. This is just moving the helper around and making it inline.
--- io_uring/io_uring.c | 13 ------------- io_uring/io_uring.h | 12 ++++++++++++ io_uring/timeout.c | 5 ++--- io_uring/waitid.c | 4 ++-- 4 files changed, 16 insertions(+), 18 deletions(-)
io_uring/io_uring.c +0 -13
@@ -1616,19 +1616,6 @@ io_req_flags_t io_file_get_flags(struct file *file)return res; } -bool io_alloc_async_data (struct io_kiocb *req) -{ -const struct io_issue_def *def = &io_issue_defs[req->opcode]; - -WARN_ON_ONCE (!def->async_size); - req->async_data =kmalloc (def->async_size,GFP_KERNEL ); -if (req->async_data) { - req->flags |=REQ_F_ASYNC_DATA ; -return false; - } -return true; -} -static u32 io_get_sequence (struct io_kiocb *req) {u32 seq = req->ctx->cached_sq_head;
io_uring/io_uring.h +12 -0
@@ -12,6 +12,7 @@#include "io-wq.h" #include "slist.h" #include "filetable.h" +#include "opdef.h" #ifndef CREATE_TRACE_POINTS #include <trace/events/io_uring.h>
@@ -232,6 +233,17 @@ static inline void *io_uring_alloc_async_data(struct io_alloc_cache *cache,return req->async_data; } +static inline void *io_uring_alloc_async_data_nocache (struct io_kiocb *req) +{ +const struct io_issue_def *def = &io_issue_defs[req->opcode]; + +WARN_ON_ONCE (!def->async_size); + req->async_data =kmalloc (def->async_size,GFP_KERNEL ); +if (req->async_data) + req->flags |=REQ_F_ASYNC_DATA ; +return req->async_data; +} +static inline bool req_has_async_data (struct io_kiocb *req) {return req->flags &REQ_F_ASYNC_DATA ;
io_uring/timeout.c +2 -3
@@ -526,10 +526,9 @@ static int __io_timeout_prep(struct io_kiocb *req,if (WARN_ON_ONCE (req_has_async_data (req)))return -EFAULT ; -if (io_alloc_async_data (req)) + data =io_uring_alloc_async_data_nocache (req); +if (!data)return -ENOMEM ; - - data = req->async_data; data->req = req; data->flags = flags;
io_uring/waitid.c +2 -2
@@ -303,10 +303,10 @@ int io_waitid(struct io_kiocb *req, unsigned int issue_flags)struct io_waitid_async *iwa;int ret; -if (io_alloc_async_data (req)) + iwa =io_uring_alloc_async_data_nocache (req); +if (!iwa)return -ENOMEM ; - iwa = req->async_data; iwa->req = req; ret = kernel_waitid_prepare(&iwa->wo, iw->which, iw->upid, &iw->info,
Signature · 1 line
2.47.0
PATCH 9/9 io_uring/msg_ring: Drop custom destructor
In reply to Gabriel Krisman Bertazikfree can handle slab objects nowadays. Drop the extra callback and just use kfree.
--- io_uring/io_uring.c | 4 ++-- io_uring/msg_ring.c | 7 ------- io_uring/msg_ring.h | 1 - 3 files changed, 2 insertions(+), 10 deletions(-)
io_uring/io_uring.c +2 -2
@@ -361,7 +361,7 @@ static __cold struct io_ring_ctx *io_ring_ctx_alloc(struct io_uring_params *p)io_alloc_cache_free (&ctx->netmsg_cache, io_netmsg_cache_free);io_alloc_cache_free (&ctx->rw_cache, io_rw_cache_free);io_alloc_cache_free (&ctx->uring_cache, kfree); -io_alloc_cache_free (&ctx->msg_cache, io_msg_cache_free); +io_alloc_cache_free (&ctx->msg_cache, kfree);io_futex_cache_free (ctx);kvfree (ctx->cancel_table.hbs);xa_destroy (&ctx->io_bl_xa);
@@ -2693,7 +2693,7 @@ static __cold void io_ring_ctx_free(struct io_ring_ctx *ctx)io_alloc_cache_free (&ctx->netmsg_cache, io_netmsg_cache_free);io_alloc_cache_free (&ctx->rw_cache, io_rw_cache_free);io_alloc_cache_free (&ctx->uring_cache, kfree); -io_alloc_cache_free (&ctx->msg_cache, io_msg_cache_free); +io_alloc_cache_free (&ctx->msg_cache, kfree);io_futex_cache_free (ctx);io_destroy_buffers (ctx);io_unregister_cqwait_reg (ctx);
io_uring/msg_ring.c +0 -7
@@ -358,10 +358,3 @@ int io_uring_sync_msg_ring(struct io_uring_sqe *sqe) }return ret; } - -void io_msg_cache_free (const void *entry) -{ -struct io_kiocb *req = (struct io_kiocb *) entry; - -kmem_cache_free (req_cachep, req); -}
io_uring/msg_ring.h +0 -1
@@ -4,4 +4,3 @@ int io_uring_sync_msg_ring(struct io_uring_sqe *sqe);int io_msg_ring_prep (struct io_kiocb *req,const struct io_uring_sqe *sqe);int io_msg_ring (struct io_kiocb *req,unsigned int issue_flags);void io_msg_ring_cleanup (struct io_kiocb *req); -void io_msg_cache_free (const void *entry);
Signature · 1 line
2.47.0
Jens Axboe
maintainerQuoted 12 lines · Gabriel Krisman Bertazi
Jens, Pavel,
The allocation paths that use
alloc_cacheduplicate the same code pattern, sometimes in a quite convoluted way. This series cleans up that code by folding the allocation into the cache code itself, making it just an allocator function, and keeping the cache policy invisible to callers. A bigger justification for doing this, beyond code simplicity, is that it makes it trivial to test the impact of disabling the cache and using slab directly, which I've used for slab improvement experiments. I think this is one step forward in the direction eventually lifting thealloc_cacheinto a proper magazine layer in slab out ofio_uring.
Nice!
Patchset looks good, from a quick look, even from just a cleanup perspective. We're obviously inside the merge window right now, so it's a 6.14 target at this point. I'll take some timer to review it a bit closer later this week.
Quoted 8 lines
It survived liburing testsuite, and when microbenchmarking the read-write path with mmtests and fio, I didn't observe any significant performance variation (there was actually a 2% gain, but that was within the variance of the test runs, making it not signficant and surely test noise).
I'm specifically interested, and happy to do so, if there are specific benchmarks you'd like me to run it against.
In general, running the liburing test suite with various types of files and devices and with KASAN and LOCKDEP turned on is a good test of not having messed something up, in a big way at least. But maybe you already ran that too?
Signature · 1 line
Jens Axboe
Quoted 27 lines · Jens Axboe
Quoted 12 lines · Gabriel Krisman Bertazi
Jens, Pavel,
The allocation paths that use
alloc_cacheduplicate the same code pattern, sometimes in a quite convoluted way. This series cleans up that code by folding the allocation into the cache code itself, making it just an allocator function, and keeping the cache policy invisible to callers. A bigger justification for doing this, beyond code simplicity, is that it makes it trivial to test the impact of disabling the cache and using slab directly, which I've used for slab improvement experiments. I think this is one step forward in the direction eventually lifting thealloc_cacheinto a proper magazine layer in slab out ofio_uring.Nice!
Patchset looks good, from a quick look, even from just a cleanup perspective. We're obviously inside the merge window right now, so it's a 6.14 target at this point. I'll take some timer to review it a bit closer later this week.
Quoted 6 lines
It survived liburing testsuite, and when microbenchmarking the read-write path with mmtests and fio, I didn't observe any significant performance variation (there was actually a 2% gain, but that was within the variance of the test runs, making it not signficant and surely test noise).
Quoted 7 lines
Quoted 2 lines
I'm specifically interested, and happy to do so, if there are specific benchmarks you'd like me to run it against.
In general, running the liburing test suite with various types of files and devices and with KASAN and LOCKDEP turned on is a good test of not having messed something up, in a big way at least. But maybe you already ran that too?
I was thinking more of extra performance benchmark, but I always forget to enable KASAN. I'll rerun to confirm it is fine. :)
thanks,
Signature · 1 line
Gabriel Krisman Bertazi