On Thu, Jul 21, 2022 at 03:09:15PM +0200, Christoph Hellwig wrote: > Looking at the hctxs and cpumap is not safe without at very last a RCU > reference. It also requires the queue to be set up before starting the > device, which leads to rather awkward life time rules. > > Instead rewrite ublk_ctrl_get_queue_affinity to just build the cpumask > directly from the mq_map in the tag set, similar to hctx->cpumask is > built. > > Signed-off-by: Christoph Hellwig <hch@xxxxxx> Reviewed-by: Ming Lei <ming.lei@xxxxxxxxxx> Thanks, Ming