Re: [PATCH v4 1/9] lib/group_cpus: let group_cpu_evenly return number of groups

From
Daniel Wagner <hidden>
Date
2025-01-07 10:46:04
Also in
linux-nvme, linux-scsi, lkml, virtualization
Reply to
Hannes Reinecke, 2025-01-07
On Tue, Jan 07, 2025 at 11:35:10AM +0100, Hannes Reinecke wrote:
On 1/7/25 09:20, Daniel Wagner wrote:
quoted
On Tue, Jan 07, 2025 at 08:51:57AM +0100, Hannes Reinecke wrote:
quoted
quoted
   void blk_mq_map_queues(struct blk_mq_queue_map *qmap)
   {
   	const struct cpumask *masks;
-	unsigned int queue, cpu;
+	unsigned int queue, cpu, nr_masks;
-	masks = group_cpus_evenly(qmap->nr_queues);
+	nr_masks = qmap->nr_queues;
+	masks = group_cpus_evenly(&nr_masks);
Hmph. I am a big fan of separating input and output paramenters;
most ABI definitions will be doing that anyway.
Makes it also really hard to track whether the output parameters
had been set at all. Care to split it up?
What API do you have in mind?
ABI, not API.
I got that, still what C API do you want to see?
Thread (29 messages) 29 messages, 7 authors, last reply 2025-01-13
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help