diff options
author | Poornima G <pgurusid@redhat.com> | 2018-06-27 14:59:40 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2018-07-11 04:11:59 +0000 |
commit | 69f77d28c3ecacba77fbae2f789b5110641347f3 (patch) | |
tree | 746f1470476a981b6becaedb6c7c1e681f457f41 /xlators/storage/posix/src/posix-entry-ops.c | |
parent | af6c6429f9743f287baaad68f8e3d56ed7390d1b (diff) |
md-cache: Do not invalidate cache post set/remove xattr
Since setxattr and removexattr fops cbk do not carry poststat,
the stat cache was being invalidated in setxatr/remoxattr cbk.
Hence the further lookup wouldn't be served from cache.
To prevent this invalidation, md-cache is modified to get
the poststat in set/removexattr_cbk in dict.
Co-authored with Xavi Hernandez.
Change-Id: I6b946be2d20b807e2578825743c25ba5927a60b4
fixes: bz#1586018
Signed-off-by: Xavi Hernandez <xhernandez@redhat.com>
Signed-off-by: Poornima G <pgurusid@redhat.com>
Diffstat (limited to 'xlators/storage/posix/src/posix-entry-ops.c')
-rw-r--r-- | xlators/storage/posix/src/posix-entry-ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/storage/posix/src/posix-entry-ops.c b/xlators/storage/posix/src/posix-entry-ops.c index 4241b574bc4..9089603c0fa 100644 --- a/xlators/storage/posix/src/posix-entry-ops.c +++ b/xlators/storage/posix/src/posix-entry-ops.c @@ -1238,7 +1238,7 @@ posix_unlink (call_frame_t *frame, xlator_t *this, "fstat failed on fd=%d", fd); goto out; } - op_ret = posix_set_iatt_in_dict (unwind_dict, &postbuf); + op_ret = posix_set_iatt_in_dict (unwind_dict, NULL, &postbuf); } op_ret = posix_pstat (this, loc->parent, loc->pargfid, par_path, |