On 2020/07/20 21:34, hch@xxxxxxxxxxxxx wrote: > On Mon, Jul 20, 2020 at 12:32:48PM +0000, Damien Le Moal wrote: >> But for regular 4Kn drives, including all logical drives like null_blk, I think >> it would still be nice to have a max_hw_sectors and max_sectors aligned on 4K. >> We can enforce that generically in the block layer when setting these limits, or >> audit drivers and correct those setting weird values (like null_blk). Which >> approach do you think is better ? > > I guess we can just round down in the block layer. Works for me. -- Damien Le Moal Western Digital Research