Re: [PATCH 1/6] ublk: consistently use u16 for queue and tag numbers

Ming Lei <[email protected]> Wed, 29 Jul 2026 09:51:01 -0500
Newsgroups org.kernel.vger.linux-block,org.kernel.vger.linux-kernel
Message-ID <amoTVUNipvRDGvVu@fedora-laptop>
On Tue, Jul 28, 2026 at 07:29:46PM -0600, Caleb Sander Mateos wrote:
> The u16 nr_hw_queues and queue_depth fields of the ublk UAPI struct
> ublksrv_ctrl_dev_info constrain the number of queues and queue depth of
> each ublk device. However, the ublk driver is a bit inconsistent with
> the type it uses to represent these values, mixing u16 with int and
> unsigned int. Change all queue number, queue depth, q_id, and tag
> variables/fields to u16 to save some space.
> 
> Signed-off-by: Caleb Sander Mateos <[email protected]>

Reviewed-by: Ming Lei <[email protected]>

Thanks,
Ming