summaryrefslogtreecommitdiff
path: root/rust/helpers/uaccess.c
diff options
context:
space:
mode:
authorCaleb Sander Mateos <csander@purestorage.com>2025-04-16 11:01:53 -0600
committerJens Axboe <axboe@kernel.dk>2025-04-22 20:09:12 -0600
commit4c7d3c88c77bf227c12ef13e8461a0c940f775e8 (patch)
tree61fcf224dd1a96cb58406b06d0fc74ca6d4702f8 /rust/helpers/uaccess.c
parent98b995660bff011d8e00af03abd74ac7d1ac1390 (diff)
ublk: remove unnecessary ubq checks
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. Signed-off-by: Caleb Sander Mateos <csander@purestorage.com> Reviewed-by: Ming Lei <ming.lei@redhat.com> Reviewed-by: Uday Shankar <ushankar@purestorage.com> Link: https://lore.kernel.org/r/20250416170154.3621609-1-csander@purestorage.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'rust/helpers/uaccess.c')
0 files changed, 0 insertions, 0 deletions