aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/nfs/nfs4proc.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index f38d0573be18..424aa206470f 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -982,11 +982,8 @@ static int _nfs4_open_expired(struct nfs_open_context *ctx, struct nfs4_state *s
982 if (IS_ERR(opendata)) 982 if (IS_ERR(opendata))
983 return PTR_ERR(opendata); 983 return PTR_ERR(opendata);
984 ret = nfs4_open_recover(opendata, state); 984 ret = nfs4_open_recover(opendata, state);
985 if (ret == -ESTALE) { 985 if (ret == -ESTALE)
986 /* Invalidate the state owner so we don't ever use it again */
987 nfs4_drop_state_owner(state->owner);
988 d_drop(ctx->path.dentry); 986 d_drop(ctx->path.dentry);
989 }
990 nfs4_opendata_put(opendata); 987 nfs4_opendata_put(opendata);
991 return ret; 988 return ret;
992} 989}