Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 16c99140 authored by Weston Andros Adamson's avatar Weston Andros Adamson Committed by Trond Myklebust
Browse files

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.

Reported-by: default avatarWill Deacon <will.deacon@arm.com>
Tested-by: default avatarWill Deacon <will.deacon@arm.com>
Signed-off-by: default avatarWeston Andros Adamson <dros@primarydata.com>
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
parent e0d4ed71
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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