# Re: \[PATCH v4 3/8\] nullb: use blk\_queue\_set\_zoned() to setup zoned devices

- From: Chaitanya Kulkarni \<hidden\>
- Date: 2021-01-28 05:13:42 
- List: linux-block
- Page: https://ratatoskr.run/linux-block/2021/01/6400586
- Thread: https://ratatoskr.run/linux-block/2021/01/6400577/t.md

```text
On 1/27/21 20:47, Damien Le Moal wrote:
> Use blk_queue_set_zoned() to set a nullb device zone model instead of
> directly assigning the device queue zoned limit. This initialization of
> the devicve zoned model as well as the setup of the queue flag
> QUEUE_FLAG_ZONE_RESETALL and of the device queue elevator feature are
> moved from null_init_zoned_dev() to null_register_zoned_dev() so that
> the initialization of the queue limits is done when the gendisk of the
> nullb device is available.
>
> Signed-off-by: Damien Le Moal <redacted>
Looks good.

Reviewed-by: Chaitanya Kulkarni <redacted>

```
