direct-io.hg

changeset 13798:2d930873f56d

minios: Fix bug in xenbus implementation.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Fri Feb 02 15:55:56 2007 +0000 (2007-02-02)
parents 249e7e32dec8
children 1e56ac73b9b9
files extras/mini-os/xenbus/xenbus.c
line diff
     1.1 --- a/extras/mini-os/xenbus/xenbus.c	Fri Feb 02 15:54:42 2007 +0000
     1.2 +++ b/extras/mini-os/xenbus/xenbus.c	Fri Feb 02 15:55:56 2007 +0000
     1.3 @@ -178,6 +178,7 @@ static void release_xenbus_id(int id)
     1.4      BUG_ON(!req_info[id].in_use);
     1.5      spin_lock(&req_lock);
     1.6      nr_live_reqs--;
     1.7 +    req_info[id].in_use = 0;
     1.8      if (nr_live_reqs == NR_REQS - 1)
     1.9          wake_up(&req_wq);
    1.10      spin_unlock(&req_lock);
    1.11 @@ -212,6 +213,7 @@ static int allocate_xenbus_id(void)
    1.12      probe = o_probe + 1;
    1.13      spin_unlock(&req_lock);
    1.14      init_waitqueue_head(&req_info[o_probe].waitq);
    1.15 +
    1.16      return o_probe;
    1.17  }
    1.18