Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 231994
b: refs/heads/master
c: 7808121
h: refs/heads/master
v: v3
  • Loading branch information
Daniel De Graaf authored and Jeremy Fitzhardinge committed Sep 9, 2010
1 parent 1c8e720 commit 5b3bf9c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 76ce7618f9a24f7b13958c67f7d5ccfcdab71475
refs/heads/master: 7808121b9a1e44ef12fecd49fa6c268f27a150fc
3 changes: 3 additions & 0 deletions trunk/drivers/xen/xenfs/xenbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ static ssize_t xenbus_file_read(struct file *filp,
int ret;

mutex_lock(&u->reply_mutex);
again:
while (list_empty(&u->read_buffers)) {
mutex_unlock(&u->reply_mutex);
if (filp->f_flags & O_NONBLOCK)
Expand Down Expand Up @@ -158,6 +159,8 @@ static ssize_t xenbus_file_read(struct file *filp,
struct read_buffer, list);
}
}
if (i == 0)
goto again;

out:
mutex_unlock(&u->reply_mutex);
Expand Down

0 comments on commit 5b3bf9c

Please sign in to comment.