From: Trond Myklebust Date: Mon, 31 Aug 2015 01:37:59 +0000 (-0700) Subject: NFSv4.1: Fix a protocol issue with CLOSE stateids X-Git-Tag: omap-for-v4.3/fixes-rc1~78^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a1e2feb9d246775dee0f78ed5b18826bae2b1c5;p=pandora-kernel.git NFSv4.1: Fix a protocol issue with CLOSE stateids According to RFC5661 Section 18.2.4, CLOSE is supposed to return the zero stateid. This means that nfs_clear_open_stateid_locked() cannot assume that the result stateid will always match the 'other' field of the existing open stateid when trying to determine a race with a parallel OPEN. Instead, we look at the argument, and check for matches. Cc: stable@vger.kernel.org # v4.0+ Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed