[PATCH 0/2] Fix the initialization of max_hw_wzeroes_unmap_sectors for stacking drivers

Zhang Yi posted 2 patches 1 month, 1 week ago
There is a newer version of this series
drivers/block/drbd/drbd_nl.c | 1 +
drivers/md/md-linear.c       | 1 +
drivers/md/raid0.c           | 1 +
drivers/md/raid1.c           | 1 +
drivers/md/raid10.c          | 1 +
drivers/md/raid5.c           | 1 +
6 files changed, 6 insertions(+)
[PATCH 0/2] Fix the initialization of max_hw_wzeroes_unmap_sectors for stacking drivers
Posted by Zhang Yi 1 month, 1 week ago
From: Zhang Yi <yi.zhang@huawei.com>

Hello,

This series fixes the initialization of max_hw_wzeroes_unmap_sectors in
queue_limits for all md raid and drbd drivers, preventing
blk_validate_limits() failures on underlying devices that support the
unmap write zeroes command.

Best regards,
Yi.

Zhang Yi (2):
  md: init queue_limits->max_hw_wzeroes_unmap_sectors parameter
  drbd: init queue_limits->max_hw_wzeroes_unmap_sectors parameter

 drivers/block/drbd/drbd_nl.c | 1 +
 drivers/md/md-linear.c       | 1 +
 drivers/md/raid0.c           | 1 +
 drivers/md/raid1.c           | 1 +
 drivers/md/raid10.c          | 1 +
 drivers/md/raid5.c           | 1 +
 6 files changed, 6 insertions(+)

-- 
2.46.1
Re: [PATCH 0/2] Fix the initialization of max_hw_wzeroes_unmap_sectors for stacking drivers
Posted by Yu Kuai 1 month, 1 week ago
在 2025/08/25 16:33, Zhang Yi 写道:
> From: Zhang Yi <yi.zhang@huawei.com>
> 
> Hello,
> 
> This series fixes the initialization of max_hw_wzeroes_unmap_sectors in
> queue_limits for all md raid and drbd drivers, preventing
> blk_validate_limits() failures on underlying devices that support the
> unmap write zeroes command.
> 
> Best regards,
> Yi.
> 
> Zhang Yi (2):
>    md: init queue_limits->max_hw_wzeroes_unmap_sectors parameter
>    drbd: init queue_limits->max_hw_wzeroes_unmap_sectors parameter
> 
>   drivers/block/drbd/drbd_nl.c | 1 +
>   drivers/md/md-linear.c       | 1 +
>   drivers/md/raid0.c           | 1 +
>   drivers/md/raid1.c           | 1 +
>   drivers/md/raid10.c          | 1 +
>   drivers/md/raid5.c           | 1 +
>   6 files changed, 6 insertions(+)
> 

For this set
Reviewed-by: Yu Kuai <yukuai3@huawei.com>

Thanks

Re: [PATCH 0/2] Fix the initialization of max_hw_wzeroes_unmap_sectors for stacking drivers
Posted by Martin K. Petersen 1 month, 1 week ago
Zhang,

> This series fixes the initialization of max_hw_wzeroes_unmap_sectors
> in queue_limits for all md raid and drbd drivers, preventing
> blk_validate_limits() failures on underlying devices that support the
> unmap write zeroes command.

Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>

-- 
Martin K. Petersen