Re: [PATCH v2 0/5] Validate logical block size in blk_validate_limits()

From: Jens Axboe
Date: Tue Jul 09 2024 - 02:01:51 EST



On Mon, 08 Jul 2024 09:16:46 +0000, John Garry wrote:
> This series adds validation of the logical block size in
> blk_validate_limits().
>
> Some drivers had already been validating this themselves. As such, we can
> mostly drop that driver validation.
>
> nbd is problematic, as we cannot only change to just stop calling
> blk_validate_limits(). This is because the LBS is updated in a 2-stage
> process:
> a. update block size in the driver and validate
> b. update queue limits
>
> [...]

Applied, thanks!

[1/5] virtio_blk: Fix default logical block size fallback
commit: 4ff3d01275dee10ed1f40c314ba5133e3c7a6e1b
[2/5] block: Validate logical block size in blk_validate_limits()
commit: fe3d508ba95bc63adba661355115be340275c0d1
[3/5] null_blk: Don't bother validating blocksize
commit: addc3a68de850fa25dcf937705e721d8eec22470
[4/5] virtio_blk: Don't bother validating blocksize
commit: af2817229158cea7960b9132e0a8c4470ebbfef5
[5/5] loop: Don't bother validating blocksize
commit: 9423c653fe611070d875b374fb322dc44acce3f2

Best regards,
--
Jens Axboe