summaryrefslogtreecommitdiffstats
path: root/xlators/nfs/server/src/nfs-fops.c
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@gluster.com>2010-11-25 00:17:07 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-11-25 06:35:13 -0800
commitac5e34ec840889bc3eaf07d2f7091432ff698fe2 (patch)
treef03eef9d96590bde559e65f72e9c86837210dfff /xlators/nfs/server/src/nfs-fops.c
parent9e67fd90e0df32b9a450632566855339b133d3a6 (diff)
nfs: Undo selective changes in inode revalidation
Those changes were brought in by commit 161850285ff06e90f2c990989bab9513dd4a4289: "nfs: re-implement logic to perform fresh lookups when lookup revalidates fail" Signed-off-by: Shehjar Tikoo <shehjart@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 1756 (NFS must revalidate inode on first ESTALE on lookup) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1756
Diffstat (limited to 'xlators/nfs/server/src/nfs-fops.c')
-rw-r--r--xlators/nfs/server/src/nfs-fops.c29
1 files changed, 1 insertions, 28 deletions
diff --git a/xlators/nfs/server/src/nfs-fops.c b/xlators/nfs/server/src/nfs-fops.c
index 1c5b4f5cc6c..787dcc4b1dd 100644
--- a/xlators/nfs/server/src/nfs-fops.c
+++ b/xlators/nfs/server/src/nfs-fops.c
@@ -74,8 +74,6 @@ nfs_fop_local_wipe (xlator_t *nfsx, struct nfs_fop_local *l)
if (l->dictgfid)
dict_unref (l->dictgfid);
- loc_wipe (&l->revalidate_loc);
-
mem_put (nfs->foppool, l);
return;
@@ -307,29 +305,9 @@ nfs_fop_lookup_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
{
struct nfs_fop_local *local = NULL;
fop_lookup_cbk_t progcbk;
- inode_table_t *itable = NULL;
- xlator_t *xl = NULL;
-
- xl = cookie;
-
- local = frame->local;
- nfs_fop_restore_root_ino (local, buf, NULL, NULL, postparent);
-
- if (op_ret == -1 && local->is_revalidate == 1) {
- /* perform a fresh lookup if revalidate fails */
- itable = local->revalidate_loc.inode->table;
- inode_unref (local->revalidate_loc.inode);
- local->revalidate_loc.inode = inode_new (itable);
-
- local->is_revalidate = 2; /* prevent entering revalidate loops */
-
- STACK_WIND_COOKIE (frame, nfs_fop_lookup_cbk, xl, xl,
- xl->fops->lookup, &local->revalidate_loc,
- local->dictgfid);
- return 0;
- }
nfl_to_prog_data (local, progcbk, frame);
+ nfs_fop_restore_root_ino (local, buf, NULL, NULL, postparent);
if (progcbk)
progcbk (frame, cookie, this, op_ret, op_errno, inode, buf,
xattr, postparent);
@@ -356,11 +334,6 @@ nfs_fop_lookup (xlator_t *nfsx, xlator_t *xl, nfs_user_t *nfu, loc_t *loc,
nfs_fop_save_root_ino (nfl, loc);
nfs_fop_gfid_setup (nfl, loc->inode, ret, err);
- if (!uuid_is_null (loc->inode->gfid)) {
- nfl->is_revalidate = 1;
- loc_copy (&nfl->revalidate_loc, loc);
- }
-
STACK_WIND_COOKIE (frame, nfs_fop_lookup_cbk, xl, xl,
xl->fops->lookup, loc, nfl->dictgfid);