mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
minios: Fix xenbus request-id release.
From: Jacob Gorm Hansen <jacobg@diku.dk> Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
1 parent
97c4f107f9
commit
a15ec0cdeb
1 file changed
+2
@@ -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;
|
||||
|
||||