Re: [PATCH 3/3] eventfd: add internal reference counting to fixnotifier race conditions
From: Davide Libenzi
Date: Mon Jun 22 2009 - 15:36:28 EST
On Mon, 22 Jun 2009, Gregory Haskins wrote:
> Michael S. Tsirkin wrote:
> > On Mon, Jun 22, 2009 at 11:51:42AM -0700, Davide Libenzi wrote:
> >
> >> A file* based kernel-to-kernel interface is rather wrong IMO.
> >>
> >
> > But eventfd_ctx should work fine.
> >
>
> Yeah, and I guess we can always just say that qemu can't close the fd or
> something. Seems hacky, but it might work if Davide insists we need his
> change.
Continuing here, since there's no reason of having many subthreads talking
about the same thing.
Can you make a detailed example of what you're trying to achieve (no Hint
Mode, please)?
As it sounds to me, that you need a consumer/producer reference counting,
to cover your scenario correctly.
- Davide
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/