Re: [PATCH v11 2/3] ublk: move check for empty address field on command submission

From: Ming Lei
Date: Fri Aug 04 2023 - 09:33:20 EST


On Fri, Aug 4, 2023 at 8:34 PM Andreas Hindborg (Samsung)
<nmi@xxxxxxxxxxxx> wrote:
>
> From: Andreas Hindborg <a.hindborg@xxxxxxxxxxx>
>
> In preparation for zoned storage support, move the check for empty `addr`
> field into the command handler case statement. Note that the check makes no
> sense for `UBLK_IO_NEED_GET_DATA` because the `addr` field must always be
> set for this command.
>
> Signed-off-by: Andreas Hindborg <a.hindborg@xxxxxxxxxxx>

Reviewed-by: Ming Lei <ming.lei@xxxxxxxxxx>

Thanks,