]> Gentwo Git Trees - linux/.git/commit
ublk: don't pass q_id to ublk_queue_cmd_buf_size()
authorCaleb Sander Mateos <csander@purestorage.com>
Thu, 18 Sep 2025 01:49:38 +0000 (19:49 -0600)
committerJens Axboe <axboe@kernel.dk>
Sat, 20 Sep 2025 12:36:27 +0000 (06:36 -0600)
commitb7e255b0340b5319fca4fe076119d0f929a24305
tree81bae919ac92715d2c162f477f1101d669fe3ef5
parent163f80dabf4f0c4d9e6c39e0dba474814dac78f8
ublk: don't pass q_id to ublk_queue_cmd_buf_size()

ublk_queue_cmd_buf_size() only needs the queue depth, which is the same
for all queues. Get the queue depth from the ublk_device instead so the
q_id parameter can be dropped.

Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/ublk_drv.c