Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 67652
b: refs/heads/master
c: cee23c7
h: refs/heads/master
v: v3
  • Loading branch information
Denis Cheng authored and Steven Whitehouse committed Oct 10, 2007
1 parent 0244d59 commit 295a882
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 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: 6760bdcd03a12d7d082794311ccbaf44bfc23b06
refs/heads/master: cee23c79d08c57bbbb9923703409af3b17518c58
11 changes: 6 additions & 5 deletions trunk/fs/gfs2/locking/dlm/plock.c
Original file line number Diff line number Diff line change
Expand Up @@ -346,15 +346,16 @@ static ssize_t dev_write(struct file *file, const char __user *u, size_t count,

static unsigned int dev_poll(struct file *file, poll_table *wait)
{
unsigned int mask = 0;

poll_wait(file, &send_wq, wait);

spin_lock(&ops_lock);
if (!list_empty(&send_list)) {
spin_unlock(&ops_lock);
return POLLIN | POLLRDNORM;
}
if (!list_empty(&send_list))
mask = POLLIN | POLLRDNORM;
spin_unlock(&ops_lock);
return 0;

return mask;
}

static const struct file_operations dev_fops = {
Expand Down

0 comments on commit 295a882

Please sign in to comment.