From: Trond Myklebust Date: Tue, 26 Aug 2014 02:33:12 +0000 (-0400) Subject: NFSv4: Fix problems with close in the presence of a delegation X-Git-Tag: omap-fixes-against-v3.17-rc3~23^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aee7af356e151494d5014f57b33460b162f181b5;p=pandora-kernel.git NFSv4: Fix problems with close in the presence of a delegation In the presence of delegations, we can no longer assume that the state->n_rdwr, state->n_rdonly, state->n_wronly reflect the open stateid share mode, and so we need to calculate the initial value for calldata->arg.fmode using the state->flags. Reported-by: James Drews Fixes: 88069f77e1ac5 (NFSv41: Fix a potential state leakage when...) Cc: stable@vger.kernel.org # 2.6.33+ Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed