diff options
| author | Trond Myklebust <trond.myklebust@primarydata.com> | 2014-08-25 22:33:12 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-05 16:36:43 -0700 |
| commit | 7d21e3d5ee56d7a3bac4645dcbabb90d3bf8731e (patch) | |
| tree | 56e04c1b7ef4ea2707b4259440dbfe977240172d /net/lapb/lapb_timer.c | |
| parent | 96bd3efeed06462bb87d6fdd6d8e66750f294d08 (diff) | |
NFSv4: Fix problems with close in the presence of a delegation
commit aee7af356e151494d5014f57b33460b162f181b5 upstream.
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 <drews@engr.wisc.edu>
Fixes: 88069f77e1ac5 (NFSv41: Fix a potential state leakage when...)
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions
