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:
Keir Fraser committed 2007-04-06 10:15:31 +01:00
1 parent 97c4f107f9
commit a15ec0cdeb
1 file changed
+2
+2
View File
@@ -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;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.