Re: [PATCH 1/1] blk-mq: map all HWQ also in hyperthreaded system

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




+static int cpu_to_queue_index(unsigned int nr_queues, const int cpu,
+                  const struct cpumask *online_mask)
  {
-    return cpu * nr_queues / nr_cpus;
+    /*
+     * Non online CPU will be mapped to queue index 0.
+     */
+    if (!cpumask_test_cpu(cpu, online_mask))
+        return 0;

Why not map offline cpus to what they would've map to if they were
online?

I didn't change logic for offline cpu's.
Should it be done in this patch ?

The patch clearly treats offline cpus differently, maps them
to queue 0.



[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux