All of lore.kernel.org
 help / color / mirror / Atom feed
* blk_mq_update_queue_map makes an (invalid?) assumption about cpu ordering
@ 2013-10-15 17:52 Jeff Moyer
  2013-10-15 18:14 ` Jens Axboe
  0 siblings, 1 reply; 3+ messages in thread
From: Jeff Moyer @ 2013-10-15 17:52 UTC (permalink / raw)
  To: jaxboe; +Cc: linux-kernel

Hi, Jens,

blk_mq_update_queue_map does this:

        for_each_possible_cpu(i) {
                if (!cpu_online(i)) {
                        map[i] = 0;
                        continue;
                }

...
                first_sibling = get_first_sibling(i);
                if (first_sibling == i) {
                        map[i] = cpu_to_queue_index(nr_uniq_cpus, nr_queues,
                                                        queue);
                        queue++;
                } else
                        map[i] = map[first_sibling];

This assumes that the first_sibling is listed before any other siblings,
which I don't believe is true.  I don't think you get any guaranteed
ordering in that cpu_possible_mask.

... or did I miss something?

Cheers,
Jeff

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-10-15 18:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-15 17:52 blk_mq_update_queue_map makes an (invalid?) assumption about cpu ordering Jeff Moyer
2013-10-15 18:14 ` Jens Axboe
2013-10-15 18:25   ` Jeff Moyer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.