Re: [PATCH v5] virtio-blk: Add validation for block size in config space

From: Martin K. Petersen
Date: Tue Oct 05 2021 - 14:27:23 EST



Michael,

> Would it be acceptable for blk layer to validate the input instead of
> having each driver do it's own thing? Maybe inside
> blk_queue_logical_block_size?

I think that would be fine. I believe we had some patches floating
around a few years ago attempting to make that change.

--
Martin K. Petersen Oracle Linux Engineering