Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 53509
b: refs/heads/master
c: 91e59c3
h: refs/heads/master
i:
  53507: 04c4c94
v: v3
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed May 1, 2007
1 parent f1ca359 commit e7e3901
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 31 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: 1a0ba9ae485c5fd17d0bff2f14d9dd75b8985593
refs/heads/master: 91e59c368c6ba5eed0369a085c42c9f270b97aa8
30 changes: 0 additions & 30 deletions trunk/fs/nfs/write.c
Original file line number Diff line number Diff line change
Expand Up @@ -594,34 +594,6 @@ static inline int nfs_scan_commit(struct inode *inode, struct list_head *dst, un
}
#endif

static int nfs_wait_on_write_congestion(struct address_space *mapping)
{
struct inode *inode = mapping->host;
struct backing_dev_info *bdi = mapping->backing_dev_info;
int ret = 0;

might_sleep();

if (!bdi_write_congested(bdi))
return 0;

nfs_inc_stats(inode, NFSIOS_CONGESTIONWAIT);

do {
struct rpc_clnt *clnt = NFS_CLIENT(inode);
sigset_t oldset;

rpc_clnt_sigmask(clnt, &oldset);
ret = congestion_wait_interruptible(WRITE, HZ/10);
rpc_clnt_sigunmask(clnt, &oldset);
if (ret == -ERESTARTSYS)
break;
ret = 0;
} while (bdi_write_congested(bdi));

return ret;
}

/*
* Try to update any existing write request, or create one if there is none.
* In order to match, the request's credentials must match those of
Expand All @@ -640,8 +612,6 @@ static struct nfs_page * nfs_update_request(struct nfs_open_context* ctx,

end = offset + bytes;

if (nfs_wait_on_write_congestion(mapping))
return ERR_PTR(-ERESTARTSYS);
for (;;) {
/* Loop over all inode entries and see if we find
* A request for the page we wish to update
Expand Down

0 comments on commit e7e3901

Please sign in to comment.