Re: [PATCH 4/5] block: Remove REQ_OP_ZONE_RESET_ALL emulation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2024-07-04 at 08:39 +0900, Damien Le Moal wrote:
> Now that device mapper can handle resetting all zones of a mapped
> zoned
> device using REQ_OP_ZONE_RESET_ALL, all zoned block device drivers
> support this operation. With this, the request queue feature
> BLK_FEAT_ZONE_RESETALL is not necessary and the emulation code in
> blk-zone.c can be removed.
> 
> Signed-off-by: Damien Le Moal <dlemoal@xxxxxxxxxx>
> ---
>  block/blk-core.c               |  2 +-
>  block/blk-zoned.c              | 76 ++----------------------------
> ----
>  drivers/block/null_blk/zoned.c |  2 +-
>  drivers/block/ublk_drv.c       |  2 +-
>  drivers/block/virtio_blk.c     |  2 +-
>  drivers/nvme/host/zns.c        |  2 +-
>  drivers/scsi/sd_zbc.c          |  2 +-
>  include/linux/blkdev.h         |  5 ---
>  8 files changed, 9 insertions(+), 84 deletions(-)
> 
> diff --git a/block/blk-core.c b/block/blk-core.c
> index 71b7622c523a..0c25df9758d0 100644
> --- a/block/blk-core.c
> +++ b/block/blk-core.c
> @@ -834,7 +834,7 @@ void submit_bio_noacct(struct bio *bio)
>  			goto not_supported;
>  		break;
>  	case REQ_OP_ZONE_RESET_ALL:
> -		if (!bdev_is_zoned(bio->bi_bdev) ||
> !blk_queue_zone_resetall(q))
> +		if (!bdev_is_zoned(bio->bi_bdev))
>  			goto not_supported;
>  		break;
>  	case REQ_OP_DRV_IN:

It does the same thing as other zone operations, putting these together
will be more cleaner?

> ...


> 




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux