direct-io.hg

changeset 13988:ee6e484403a9

minios: Fix xenbus-id allocation loop.
Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
author kfraser@localhost.localdomain
date Mon Feb 19 15:50:29 2007 +0000 (2007-02-19)
parents b90180c2a057
children ac570a3c79a2
files extras/mini-os/xenbus/xenbus.c
line diff
     1.1 --- a/extras/mini-os/xenbus/xenbus.c	Mon Feb 19 15:46:01 2007 +0000
     1.2 +++ b/extras/mini-os/xenbus/xenbus.c	Mon Feb 19 15:50:29 2007 +0000
     1.3 @@ -210,7 +210,7 @@ static int allocate_xenbus_id(void)
     1.4      }
     1.5      nr_live_reqs++;
     1.6      req_info[o_probe].in_use = 1;
     1.7 -    probe = o_probe + 1;
     1.8 +    probe = (o_probe + 1) % NR_REQS;
     1.9      spin_unlock(&req_lock);
    1.10      init_waitqueue_head(&req_info[o_probe].waitq);
    1.11