On Wed, May 07, 2025 at 03:49:37PM -0600, Uday Shankar wrote:
Currently, when we process CQEs, we know which ublk_queue we are working on because we know which ring we are working on, and ublk_queues and rings are in 1:1 correspondence. However, as we decouple ublk_queues from ublk server threads, ublk_queues and rings will no longer be in 1:1 correspondence - each ublk server thread will have a ring, and each thread may issue commands against more than one ublk_queue. So in order to know which ublk_queue a CQE refers to, plumb that information in the associated SQE's user_data.
Signed-off-by: Uday Shankar ushankar@purestorage.com
Looks fine,
Reviewed-by: Ming Lei ming.lei@redhat.com
Thanks, Ming