* [RFC PATCH] return -EINVAL when trying to kick/kill a nonexistent domain watchdog
@ 2011-10-14 10:02 Laszlo Ersek
0 siblings, 0 replies; only message in thread
From: Laszlo Ersek @ 2011-10-14 10:02 UTC (permalink / raw)
To: xen-devel@lists.xensource.com
[-- Attachment #1: Type: text/plain, Size: 227 bytes --]
... to be more in-line with the NR_DOMAIN_WATCHDOG_TIMERS check at the
top of domain_watchdog(), and also to follow the timer_(delete|settime)
POSIX API's EINVAL return value.
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
[-- Attachment #2: einval_upstream.patch --]
[-- Type: text/plain, Size: 404 bytes --]
diff -r 4b0907c6a08c xen/common/schedule.c
--- a/xen/common/schedule.c Tue Oct 11 12:02:58 2011 +0100
+++ b/xen/common/schedule.c Fri Oct 14 11:55:00 2011 +0200
@@ -763,7 +763,7 @@ static long domain_watchdog(struct domai
if ( !test_bit(id, &d->watchdog_inuse_map) )
{
spin_unlock(&d->watchdog_lock);
- return -EEXIST;
+ return -EINVAL;
}
if ( timeout == 0 )
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-10-14 10:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-14 10:02 [RFC PATCH] return -EINVAL when trying to kick/kill a nonexistent domain watchdog Laszlo Ersek
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.