Thread (180 messages) 180 messages, 22 authors, 2006-08-22

Re: [take5 0/4] kevent: Generic event handling mechanism.

From: Evgeniy Polyakov <hidden>
Date: 2006-08-09 06:25:33

On Wed, Aug 09, 2006 at 10:11:59AM +0400, Evgeniy Polyakov (johnpol@2ka.mipt.ru) wrote:
On Tue, Aug 08, 2006 at 10:52:30PM -0700, David Miller (davem@davemloft.net) wrote:
quoted
quoted
Using LIST_POISON is a flag that kevent is in appropriate queue or not,
I can add some flag into the structure, but why, if it is clear just by
looking into list's pointers.
What is wrong with using list_empty() as this indicator?
RCU only replaces ->prev pointer, and list_empty(entry) checks for
entry->next == head, but actually I do not see how kevent entry can
point to itself, so I will try this.
Unfortunately it is impossible to use list_empty(), since due to RCU issues kevent
can not use list_del_init(), so list_empty() will always show that list is not empty.

-- 
	Evgeniy Polyakov
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help