Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 204794
b: refs/heads/master
c: 6280f19
h: refs/heads/master
v: v3
  • Loading branch information
Paolo Bonzini authored and Jeremy Fitzhardinge committed Jul 26, 2010
1 parent 58dc814 commit 3991731
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: 4c31a781144c1f556dfcda3277dafecd4e107d95
refs/heads/master: 6280f190da4dd083f14f704be6b3314311a7eacb
3 changes: 3 additions & 0 deletions trunk/drivers/xen/xenfs/xenbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ static ssize_t xenbus_file_read(struct file *filp,
mutex_lock(&u->reply_mutex);
while (list_empty(&u->read_buffers)) {
mutex_unlock(&u->reply_mutex);
if (filp->f_flags & O_NONBLOCK)
return -EAGAIN;

ret = wait_event_interruptible(u->read_waitq,
!list_empty(&u->read_buffers));
if (ret)
Expand Down

0 comments on commit 3991731

Please sign in to comment.