Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 180239
b: refs/heads/master
c: 9f557cd
h: refs/heads/master
i:
  180237: c71b9c4
  180235: 219750d
  180231: b7427a9
  180223: d6ecfc0
v: v3
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Feb 3, 2010
1 parent 54b6711 commit 294e04a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 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: a2c0b9e291208f65221a0ad8a0c80a377707d480
refs/heads/master: 9f557cd8073104b39528794d44e129331ded649f
17 changes: 9 additions & 8 deletions trunk/fs/nfs/pagelist.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,12 @@ void nfs_release_request(struct nfs_page *req)
kref_put(&req->wb_kref, nfs_free_request);
}

static int nfs_wait_bit_uninterruptible(void *word)
{
io_schedule();
return 0;
}

/**
* nfs_wait_on_request - Wait for a request to complete.
* @req: request to wait upon.
Expand All @@ -186,14 +192,9 @@ void nfs_release_request(struct nfs_page *req)
int
nfs_wait_on_request(struct nfs_page *req)
{
int ret = 0;

if (!test_bit(PG_BUSY, &req->wb_flags))
goto out;
ret = out_of_line_wait_on_bit(&req->wb_flags, PG_BUSY,
nfs_wait_bit_killable, TASK_KILLABLE);
out:
return ret;
return wait_on_bit(&req->wb_flags, PG_BUSY,
nfs_wait_bit_uninterruptible,
TASK_UNINTERRUPTIBLE);
}

/**
Expand Down

0 comments on commit 294e04a

Please sign in to comment.