Re: [PATCH v2 26/28] block: Remove zone write locking

Hannes Reinecke
2024-03-27T07:33:05Z

On 3/25/24 05:44, Damien Le Moal wrote:
> Zone write locking is now unused and replaced with zone write plugging.
> Remove all code that was implementing zone write locking, that is, the
> various helper functions controlling request zone write locking and
> the gendisk attached zone bitmaps.
>
> The "zone_wlock" mq-debugfs entry that was listing zones that are
> write-locked is replaced with the zone_wplugs entry which lists
> the zones that currently have a write plug allocated. The information
> provided is: the zone number, the zone write plug flags, the zone write
> plug write pointer offset and the number of BIOs currently waiting for
> execution in the zone write plug BIO list.
>
> Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
> ---
> block/blk-mq-debugfs.c | 3 +-
> block/blk-mq-debugfs.h | 4 +-
> block/blk-zoned.c | 92 ++++++++++-----------------------------
> include/linux/blk-mq.h | 83 -----------------------------------
> include/linux/blk_types.h | 1 -
> include/linux/blkdev.h | 35 ++-------------
> 6 files changed, 29 insertions(+), 189 deletions(-)
>
Reviewed-by: Hannes Reinecke <hare@suse.de>

Cheers,

Hannes
--
Dr. Hannes Reinecke Kernel Storage Architect
hare@suse.de +49 911 74053 688
SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg
HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich