diff options
author | J. Bruce Fields <bfields@redhat.com> | 2011-08-30 23:02:48 +0200 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2011-09-01 13:07:59 +0200 |
commit | 5ec094c1096ab3bb795651855d53f18daa26afde (patch) | |
tree | cb9cbbd50698cf039cf81823d40e073fbcdf53da /fs/xattr.c | |
parent | nfsd4: cleanup seqid op stateowner usage (diff) | |
download | linux-5ec094c1096ab3bb795651855d53f18daa26afde.tar.xz linux-5ec094c1096ab3bb795651855d53f18daa26afde.zip |
nfsd4: extend state lock over seqid replay logic
There are currently a couple races in the seqid replay code: a
retransmission could come while we're still encoding the original reply,
or a new seqid-mutating call could come as we're encoding a replay.
So, extend the state lock over the encoding (both encoding of a replayed
reply and caching of the original encoded reply).
I really hate doing this, and previously added the stateowner
reference-counting code to avoid it (which was insufficient)--but I
don't see a less complicated alternative at the moment.
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/xattr.c')
0 files changed, 0 insertions, 0 deletions