summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2022-07-21 16:09:15 +0300
committerJens Axboe <axboe@kernel.dk>2022-07-21 19:52:12 +0300
commitc50061f0f1a90df72aaa87eb17c459fa77952ad1 (patch)
tree976daac12b9be21dc97e368f9a284c559e1028bf /block
parentcfee7e4de2870017a4cbfdcf2d17329cc025b742 (diff)
downloadlinux-c50061f0f1a90df72aaa87eb17c459fa77952ad1.tar.xz
ublk: rewrite ublk_ctrl_get_queue_affinity to not rely on hctx->cpumask
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@lst.de> Reviewed-by: Ming Lei <ming.lei@redhat.com> Link: https://lore.kernel.org/r/20220721130916.1869719-8-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions