Re: [take3 1/4] kevent: Core files.

David Miller
2006-08-03T21:38:12Z

From: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Date: Thu, 3 Aug 2006 18:55:57 +0400

> I would not call that wrong - system prevents some threads from removing
> kevents which are counted to be transfered to the userspace, i.e. when
> dequeuing was awakened and it had seen some events it is possible, that
> when it will dequeue them part will be removed by other thread, so I
> prevent this.

Queue is all that matters to be synchronized, so it seems
better to have a mutex on the queue rather than a global
one. That way, user can only hurt himself.