From: Trond Myklebust Date: Tue, 26 Aug 2014 02:09:08 +0000 (-0400) Subject: NFSv4: Don't clear the open state when we just did an OPEN_DOWNGRADE X-Git-Tag: omap-fixes-against-v3.17-rc3~23^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=412f6c4c26fb1eba8844290663837561ac53fa6e;p=pandora-kernel.git NFSv4: Don't clear the open state when we just did an OPEN_DOWNGRADE If we did an OPEN_DOWNGRADE, then the right thing to do on success, is to apply the new open mode to the struct nfs4_state. Instead, we were unconditionally clearing the state, making it appear to our state machinery as if we had just performed a CLOSE. Fixes: 226056c5c312b (NFSv4: Use correct locking when updating nfs4_state...) Cc: stable@vger.kernel.org # 3.15+ Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed