]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commit
libxl: events: Permit timeouts to signal ao abort
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 10 Feb 2015 16:36:46 +0000 (16:36 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 26 Jun 2015 15:53:50 +0000 (16:53 +0100)
commit31c836f4da98fa515c14df7e7812aa9fb8c84e76
tree139388ae4d934e85d6c43a6be6aadcedcfba712f
parente3935054e76f85934db54e514dfb6db4cdfead30
libxl: events: Permit timeouts to signal ao abort

The callback functions provided by users must take an rc value.  This
rc value can be ERROR_TIMEDOUT or ERROR_ABORTED.

Users of xswait are now expected to deal correctly with
ERROR_ABORTED.  If they experience this, it hasn't been logged.
And the caller won't log it either since it's not TIMEDOUT.
Luckily this is correct, so we can just change the doc comment.

Currently nothing generates ERROR_ABORTED; in particular the timeouts
cannot in fact signal abort requests.

There should be no publicly visible change except that some error
returns from libxl will change from ERROR_FAIL to ERROR_TIMEDOUT, and
some changes to debugging messages.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
---
v4: ABORTED not CANCELLED.
tools/libxl/libxl_aoutils.c
tools/libxl/libxl_device.c
tools/libxl/libxl_dom.c
tools/libxl/libxl_event.c
tools/libxl/libxl_internal.h
tools/libxl/libxl_test_timedereg.c