[PATCHv8 6/6] io_uring: cache nodes and mapped buffers

Jens Axboe axboe at kernel.dk
Thu Feb 27 15:50:31 PST 2025


On 2/27/25 3:39 PM, Keith Busch wrote:
> @@ -119,22 +137,44 @@ static void io_buffer_unmap(struct io_ring_ctx *ctx, struct io_mapped_ubuf *imu)
>  	if (imu->acct_pages)
>  		io_unaccount_mem(ctx, imu->acct_pages);
>  	imu->release(imu->priv);
> -	kvfree(imu);
>  }

io_free_imu(ctx, imu);

?

-- 
Jens Axboe



More information about the Linux-nvme mailing list