]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - fs/nfs/nfs4proc.c
NFSv4: Remove bogus call to nfs4_drop_state_owner() in _nfs4_open_expired()
[mv-sheeva.git] / fs / nfs / nfs4proc.c
index f38d0573be18cefe975ffb233f61bbe521c7910b..424aa206470f4b3d575229fbfe9ce4fd5ab2bbd0 100644 (file)
@@ -982,11 +982,8 @@ static int _nfs4_open_expired(struct nfs_open_context *ctx, struct nfs4_state *s
        if (IS_ERR(opendata))
                return PTR_ERR(opendata);
        ret = nfs4_open_recover(opendata, state);
-       if (ret == -ESTALE) {
-               /* Invalidate the state owner so we don't ever use it again */
-               nfs4_drop_state_owner(state->owner);
+       if (ret == -ESTALE)
                d_drop(ctx->path.dentry);
-       }
        nfs4_opendata_put(opendata);
        return ret;
 }