All of lore.kernel.org
 help / color / mirror / Atom feed
* schedulers' use of cpumask_scratch
@ 2016-12-08 14:33 Jan Beulich
  2016-12-09 11:56 ` Dario Faggioli
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Beulich @ 2016-12-08 14:33 UTC (permalink / raw)
  To: Dario Faggioli; +Cc: xen-devel

Dario,

analyzing a stack overflow I've run into the other day I came across
credit1's __runq_tickle() not only itself having two cpumask_t
variables on the stack, but then also calling cpumask_raise_softirq()
(which uses yet one more). I then recalled you have a scratch mask
in the scheduler, and I did look at where it's used. While it's already
in use in credit1's __runq_tickle(), I then got puzzled by the different
ways credit1 and credit2 use the variable: The former always uses
scratch_cpumask_cpu() with the subject CPU as argument, while
the latter always uses plain scratch_cpumask. What guarantees
that these two uses never conflict, if both schedulers are active for
some part of the system?

Thanks, Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

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

end of thread, other threads:[~2016-12-09 11:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-08 14:33 schedulers' use of cpumask_scratch Jan Beulich
2016-12-09 11:56 ` Dario Faggioli

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.