[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] minios: Fix xenbus request-id release.



# HG changeset patch
# User Keir Fraser <keir@xxxxxxxxxxxxx>
# Date 1175850931 -3600
# Node ID ef33477324f669037a1b35b719fa0a01e98ec2f3
# Parent  ba1911d8b5f7bfe3e3bd7eca5c1f368a33038408
minios: Fix xenbus request-id release.
From: Jacob Gorm Hansen <jacobg@xxxxxxx>
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 extras/mini-os/xenbus/xenbus.c |    2 ++
 1 files changed, 2 insertions(+)

diff -r ba1911d8b5f7 -r ef33477324f6 extras/mini-os/xenbus/xenbus.c
--- a/extras/mini-os/xenbus/xenbus.c    Fri Apr 06 10:14:02 2007 +0100
+++ b/extras/mini-os/xenbus/xenbus.c    Fri Apr 06 10:15:31 2007 +0100
@@ -178,6 +178,7 @@ static void release_xenbus_id(int id)
 {
     BUG_ON(!req_info[id].in_use);
     spin_lock(&req_lock);
+    req_info[id].in_use = 0;
     nr_live_reqs--;
     req_info[id].in_use = 0;
     if (nr_live_reqs == NR_REQS - 1)
@@ -335,6 +336,7 @@ xenbus_msg_reply(int type,
     xb_write(type, id, trans, io, nr_reqs);
 
     schedule();
+    remove_waiter(w);
     wake(current);
 
     rep = req_info[id].reply;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.