[PATCH] nvme: fix write_stream_granularity initialization
Jens Axboe
axboe at kernel.dk
Tue May 6 12:47:10 PDT 2025
On Tue, 06 May 2025 11:54:12 -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.
>
> [...]
Applied, thanks!
[1/1] nvme: fix write_stream_granularity initialization
commit: 86b6e0bd1a69efd0ed408997e0adfb85df96a0c7
Best regards,
--
Jens Axboe
More information about the Linux-nvme
mailing list