Skip to contentSkip to conversation

nfs: remove spurious WARN_ON_ONCE in write path

PATCH In review Weston Andros Adamson 1 participant 2 messages Nov 3, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nfs: remove spurious WARN_ON_ONCE in write path

This WARN_ON_ONCE was supposed to catch reference counting bugs, but can trigger in inappropriate situations.

This was reproducible using NFSv2 on an architecture with 64K pages -- we verified that it was not a reference counting bug and the warning was safe to ignore.

---
 fs/nfs/write.c | 2 --
 1 file changed, 2 deletions(-)
fs/nfs/write.c +0 -2
index 12493846a2d3..f83b02dc9166 100644
@@ -715,8 +715,6 @@ static void nfs_inode_remove_request(struct nfs_page *req)
 
 	if (test_and_clear_bit(PG_INODE_REF, &req->wb_flags))
 		nfs_release_request(req);
-	else
-		WARN_ON_ONCE(1);
 }
 
 static void
Signature · 1 line
1.9.3 (Apple Git-50)
#1 lore raw

I’m not sure it we want to CC stable on this one - the single warning can simply be ignored.

-dros

Quoted 32 lines · Weston Andros Adamson

This WARN_ON_ONCE was supposed to catch reference counting bugs, but can trigger in inappropriate situations.

This was reproducible using NFSv2 on an architecture with 64K pages -- we verified that it was not a reference counting bug and the warning was safe to ignore.

---
fs/nfs/write.c | 2 --

1 file changed, 2 deletions(-)
fs/nfs/write.c +0 -2
index 12493846a2d3..f83b02dc9166 100644
@@ -715,8 +715,6 @@ static void nfs_inode_remove_request(struct nfs_page *req)
 
 	if (test_and_clear_bit(PG_INODE_REF, &req->wb_flags))
 		nfs_release_request(req);
-	else
-		WARN_ON_ONCE(1);
 }
 

static void

Signature · 1 line
1.9.3 (Apple Git-50)