]> git.neil.brown.name Git - history.git/commit
[PATCH] list_empty_careful() documentation.
authorAndrew Morton <akpm@osdl.org>
Mon, 29 Dec 2003 13:52:48 +0000 (05:52 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Mon, 29 Dec 2003 13:52:48 +0000 (05:52 -0800)
commit3182fe922bfe643b496950feb9e037d237125954
tree8db6759df50b6ac8a04a09e3c699718f1c026635
parentc13bb4092eaad8ab8aeee575d97dafa8dab0c915
[PATCH] list_empty_careful() documentation.

From: Ingo Molnar <mingo@elte.hu>

I'd also suggest the following patch below, to clarify the use of
unsynchronized list_empty().  list_empty_careful() can only be safe in the
very specific case of "one-shot" list entries which might be removed by
another CPU.  (but nothing else can happen to them and this is their only
final state.) list_empty_careful() is otherwise completely unsynchronized
on both the compiler and CPU level and is not 'SMP safe' in any way.
include/linux/list.h