2006-11-25 07:26:36

by Jason Uhlenkott

[permalink] [raw]
Subject: [TRIVIAL] Clean up nfs_create_request comments

Remove some stale comments about hard limits which went away in 2.5.

Signed-off-by: Jason Uhlenkott <[email protected]>
---

--- linux.orig/fs/nfs/pagelist.c 2006-11-24 23:03:00.350861445 -0800
+++ linux/fs/nfs/pagelist.c 2006-11-24 23:04:06.213414314 -0800
@@ -49,9 +49,7 @@
* @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 *
@@ -62,16 +60,12 @@
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();

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs