OSDN Git Service

stop_machine: Add caller debug info to queue_stop_cpus_work
authorValentin Schneider <valentin.schneider@arm.com>
Thu, 10 Dec 2020 16:38:29 +0000 (16:38 +0000)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 23 Mar 2021 15:01:58 +0000 (16:01 +0100)
Most callsites were covered by commit

  a8b62fd08505 ("stop_machine: Add function and caller debug info")

but this skipped queue_stop_cpus_work(). Add caller debug info to it.

Signed-off-by: Valentin Schneider <valentin.schneider@arm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20201210163830.21514-2-valentin.schneider@arm.com
kernel/stop_machine.c

index 971d8ac..cbc3027 100644 (file)
@@ -409,6 +409,7 @@ static bool queue_stop_cpus_work(const struct cpumask *cpumask,
                work->fn = fn;
                work->arg = arg;
                work->done = done;
+               work->caller = _RET_IP_;
                if (cpu_stop_queue_work(cpu, work))
                        queued = true;
        }