From: Jens Axboe <axboe@xxxxxxxxx> Date: Mon, 24 Nov 2014 10:16:15 -0700 > How about this one? The "num" in num_possible_cpus() means a count, as in how many are there. It doesn't mean largest ID of members of set X, which is what you are asking for. Even worse, having num_online_cpus() and num_possible_cpus() count from a different perspective is really confusing. Usually when people want a per-cpu thing they allocate percpu memory which hides all of these details, why don't you allocate the map as dynamic per-cpu memory? It will also do the NUMA node local allocations for you as well. -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html