[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <174537416718.373753.18092056116763739728.b4-ty@kernel.dk>
Date: Tue, 22 Apr 2025 20:09:27 -0600
From: Jens Axboe <axboe@...nel.dk>
To: Ming Lei <ming.lei@...hat.com>,
Caleb Sander Mateos <csander@...estorage.com>
Cc: linux-block@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] ublk: remove unnecessary ubq checks
On Wed, 16 Apr 2025 11:01:53 -0600, Caleb Sander Mateos wrote:
> ublk_init_queues() ensures that all nr_hw_queues queues are initialized,
> with each ublk_queue's q_id set to its index. And ublk_init_queues() is
> called before ublk_add_chdev(), which creates the cdev. Is is therefore
> impossible for the !ubq || ub_cmd->q_id != ubq->q_id condition to hit in
> __ublk_ch_uring_cmd(). Remove it to avoids some branches in the I/O path.
>
>
> [...]
Applied, thanks!
[1/1] ublk: remove unnecessary ubq checks
commit: 4c7d3c88c77bf227c12ef13e8461a0c940f775e8
Best regards,
--
Jens Axboe
Powered by blists - more mailing lists