ia64/xen-unstable

changeset 14761:ef33477324f6

minios: Fix xenbus request-id release.
From: Jacob Gorm Hansen <jacobg@diku.dk>
Signed-off-by: Keir Fraser <keir@xensource.com>
author Keir Fraser <keir@xensource.com>
date Fri Apr 06 10:15:31 2007 +0100 (2007-04-06)
parents ba1911d8b5f7
children eb3e430242ac 1cb39e8f1bfc
files extras/mini-os/xenbus/xenbus.c
line diff
     1.1 --- a/extras/mini-os/xenbus/xenbus.c	Fri Apr 06 10:14:02 2007 +0100
     1.2 +++ b/extras/mini-os/xenbus/xenbus.c	Fri Apr 06 10:15:31 2007 +0100
     1.3 @@ -178,6 +178,7 @@ static void release_xenbus_id(int id)
     1.4  {
     1.5      BUG_ON(!req_info[id].in_use);
     1.6      spin_lock(&req_lock);
     1.7 +    req_info[id].in_use = 0;
     1.8      nr_live_reqs--;
     1.9      req_info[id].in_use = 0;
    1.10      if (nr_live_reqs == NR_REQS - 1)
    1.11 @@ -335,6 +336,7 @@ xenbus_msg_reply(int type,
    1.12      xb_write(type, id, trans, io, nr_reqs);
    1.13  
    1.14      schedule();
    1.15 +    remove_waiter(w);
    1.16      wake(current);
    1.17  
    1.18      rep = req_info[id].reply;