Re: [KVM PATCH 3/4] eventfd: add generalized notifier interface

From: Gregory Haskins
Date: Thu Jun 18 2009 - 14:48:43 EST


Davide Libenzi wrote:
> On Thu, 18 Jun 2009, Gregory Haskins wrote:
>
>
>> We currently open-code notification registration via the f_ops->poll()
>> method of the eventfd. Lets abstract this into a notification API
>> extension of eventfd, while still using the wait-queue as the underlying
>> mechanism. This will allow us to manage the notification mechanism
>> internal to eventfd without requiring the clients to change. This also
>> gives us the opportunity to implement race-free release() callbacks,
>> which we do later in the series.
>>
>
> Another attempt to push KVM stuff into eventfd.

Also, could you please detail how you expect someone to use the POLLHUP
release in a race free way without patches 3/4 + 4/4? That is not a KVM
specific problem either, afaict.

-Greg


Attachment: signature.asc
Description: OpenPGP digital signature