Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 129974
b: refs/heads/master
c: e88a0fa
h: refs/heads/master
v: v3
  • Loading branch information
Ian Campbell authored and Ingo Molnar committed Jan 26, 2009
1 parent 32e908d commit ed226ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 659d2618b38f8a4d91bdb19cfc5c7fb330a4c55a
refs/heads/master: e88a0faae5baaaa3bdc6f23a55ad6bc7a7b4aa77
11 changes: 5 additions & 6 deletions trunk/drivers/xen/xenfs/xenbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ static void watch_fired(struct xenbus_watch *watch,
static int xenbus_write_transaction(unsigned msg_type,
struct xenbus_file_priv *u)
{
int rc, ret;
int rc;
void *reply;
struct xenbus_transaction_holder *trans = NULL;
LIST_HEAD(staging_q);
Expand Down Expand Up @@ -326,15 +326,14 @@ static int xenbus_write_transaction(unsigned msg_type,
}

mutex_lock(&u->reply_mutex);
ret = queue_reply(&staging_q, &u->u.msg, sizeof(u->u.msg));
if (!ret)
ret = queue_reply(&staging_q, reply, u->u.msg.len);
if (!ret) {
rc = queue_reply(&staging_q, &u->u.msg, sizeof(u->u.msg));
if (!rc)
rc = queue_reply(&staging_q, reply, u->u.msg.len);
if (!rc) {
list_splice_tail(&staging_q, &u->read_buffers);
wake_up(&u->read_waitq);
} else {
queue_cleanup(&staging_q);
rc = ret;
}
mutex_unlock(&u->reply_mutex);

Expand Down

0 comments on commit ed226ac

Please sign in to comment.