Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 53533
b: refs/heads/master
c: a19b89c
h: refs/heads/master
i:
  53531: 06a0b22
v: v3
  • Loading branch information
Jason Uhlenkott authored and Trond Myklebust committed May 2, 2007
1 parent 26b56f5 commit 392e5d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 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: 61322b30139b79ec77170723a3a80043dcc94e87
refs/heads/master: a19b89cad51b6f0da8f4bafdfdcfb10264cbcdea
8 changes: 1 addition & 7 deletions trunk/fs/nfs/pagelist.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ nfs_page_free(struct nfs_page *p)
* @count: number of bytes to read/write
*
* The page must be locked by the caller. This makes sure we never
* create two different requests for the same page, and avoids
* a possible deadlock when we reach the hard limit on the number
* of dirty pages.
* create two different requests for the same page.
* User should ensure it is safe to sleep in this function.
*/
struct nfs_page *
Expand All @@ -64,16 +62,12 @@ nfs_create_request(struct nfs_open_context *ctx, struct inode *inode,
struct nfs_server *server = NFS_SERVER(inode);
struct nfs_page *req;

/* Deal with hard limits. */
for (;;) {
/* try to allocate the request struct */
req = nfs_page_alloc();
if (req != NULL)
break;

/* Try to free up at least one request in order to stay
* below the hard limit
*/
if (signalled() && (server->flags & NFS_MOUNT_INTR))
return ERR_PTR(-ERESTARTSYS);
yield();
Expand Down

0 comments on commit 392e5d5

Please sign in to comment.