[Xen-devel] RE: [PATCH][ioemu] Ignore the first watch fire in xenstore_process_dm_command_event()

Ian Jackson
Tue, 16 Jun 2009 17:42:53 -0000

Cui, Dexuan writes ("RE: [PATCH][ioemu] Ignore the first watch fire in
xenstore_process_dm_command_event()"):
> Ian Jackson wrote:
> > When we start processing a command we should either (i) delete it from
> > xenstore immediately, so that future watch triggerings either
don''t
> > see the command or actually see genuine new invocations,
>
> Thanks for your suggestion.
> I prefer this method. I''ll post a new patch.

Right.  If you do this, make sure that you don''t give xend the
impression it''s safe to overwrite the parameters of the old command
until you''ve read them all.  Otherwise two commands in quick
succession (or simultaneously) will go wrong.