[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20060803.143728.43853414.davem@davemloft.net>
Date: Thu, 03 Aug 2006 14:37:28 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: johnpol@....mipt.ru
Cc: dada1@...mosbay.com, linux-kernel@...r.kernel.org,
drepper@...hat.com, netdev@...r.kernel.org, zach.brown@...cle.com
Subject: Re: [take3 1/4] kevent: Core files.
From: Evgeniy Polyakov <johnpol@....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.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists