Re: [PATCHv2 6/6] io_uring: cache nodes and mapped buffers

Keith Busch
2025-02-11T16:48:01Z

On Mon, Feb 10, 2025 at 04:56:46PM -0800, Keith Busch wrote:
> +static __cold int io_rsrc_buffer_alloc(struct io_buf_table *table, unsigned nr)
> +{
> + const int imu_cache_size = struct_size_t(struct io_mapped_ubuf, bvec,
> + IO_CACHED_BVECS_SEGS);
> + int ret;
> +
> + BUILD_BUG_ON(imu_cache_size != 512);

This isn't accurate for 32-bit machines.