All of lore.kernel.org
 help / color / mirror / Atom feed
* mixture of atomic and non-atomic operations on CPU masks
@ 2014-09-10  6:46 Jan Beulich
  2014-09-10 10:03 ` Ian Campbell
  2014-09-10 10:10 ` Andrew Cooper
  0 siblings, 2 replies; 4+ messages in thread
From: Jan Beulich @ 2014-09-10  6:46 UTC (permalink / raw)
  To: xen-devel; +Cc: Ian Campbell, Keir Fraser, Ian Jackson, Tim Deegan

All,

the inconsistency here has been puzzling me for a while, and I think
we ought to do something about it (perhaps not for 4.5 anymore,
but then right after): cpumask_(test_and_)?(set|clear)_cpu all use
the respective atomic bitops, in contrast to all other operations on
cpumask_t. A good part of the users don't require the atomicity at
all (in particular any of those acting on function scope variables).
Does anyone know of reasons why the default shouldn't be non-
atomic ops across the board, with atomic special cases being made
available for the few cases where they're actually needed?

Jan

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

end of thread, other threads:[~2014-09-10 10:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-10  6:46 mixture of atomic and non-atomic operations on CPU masks Jan Beulich
2014-09-10 10:03 ` Ian Campbell
2014-09-10 10:13   ` Jan Beulich
2014-09-10 10:10 ` Andrew Cooper

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.