[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aBpee6L-UXEDcH_h@kbusch-mbp.dhcp.thefacebook.com>
Date: Tue, 6 May 2025 13:09:47 -0600
From: Keith Busch <kbusch@...nel.org>
To: Caleb Sander Mateos <csander@...estorage.com>
Cc: Kanchan Joshi <joshi.k@...sung.com>, Jens Axboe <axboe@...nel.dk>,
Christoph Hellwig <hch@....de>, Sagi Grimberg <sagi@...mberg.me>,
linux-nvme@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] nvme: fix write_stream_granularity initialization
On Tue, May 06, 2025 at 11:54:12AM -0600, Caleb Sander Mateos wrote:
> write_stream_granularity is set to max(info->runs, U32_MAX), which means
> that any RUNS value less than 2 ** 32 becomes U32_MAX, and any larger
> value is silently truncated to an unsigned int.
>
> Use min() instead to provide the correct semantics, capping RUNS values
> at U32_MAX.
>
> Signed-off-by: Caleb Sander Mateos <csander@...estorage.com>
> Fixes: 30b5f20bb2dd ("nvme: register fdp parameters with the block layer")
Looks good
Reviewed-by: Keith Busch <kbusch@...nel.org>
Powered by blists - more mailing lists