Skip to contentSkip to conversation

kNFSd - 1 of 8 - Fix bug in rpc cache_clean introduced by previous patch

PATCH New NeilBrown 1 participant 1 message Jun 24, 2003

Subsystems (3)
lore
Share & tools
lore

NeilBrown

author
#0 lore raw

PATCH 1/1 kNFSd - 1 of 8 - Fix bug in rpc cache_clean introduced by previous patch

8 patches for kNFSd in 2.5.latest. Several relating to the export cache. Thanks,
NeilBrown
### Comments for ChangeSet

Having a 'continue' at the end of this look it pointless... it should be a break.

----------- Diffstat output ------------

 ./net/sunrpc/cache.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
net/sunrpc/cache.c renamed from net/sunrpc/cache.c~current~ +2 -2
diff ./net/sunrpc/cache.c~current~ ./net/sunrpc/cache.c
@@ -319,8 +319,8 @@ int cache_clean(void)
 			if (test_and_clear_bit(CACHE_PENDING, &ch->flags))
 				queue_loose(current_detail, ch);
 
-			if (atomic_read(&ch->refcnt))
-				continue;
+			if (!atomic_read(&ch->refcnt))
+				break;
 		}
 		if (ch) {
 			cache_get(ch);

-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs