[Bugs] [Bug 1428050] New: performance/md-cache: Fix caching for root inode
bugzilla at redhat.com
bugzilla at redhat.com
Wed Mar 1 19:04:46 UTC 2017
https://bugzilla.redhat.com/show_bug.cgi?id=1428050
Bug ID: 1428050
Summary: performance/md-cache: Fix caching for root inode
Product: GlusterFS
Version: mainline
Component: core
Assignee: bugs at gluster.org
Reporter: vbellur at redhat.com
CC: bugs at gluster.org
performance/md-cache: Fix caching for root inode
Summary:
- `is_mdc_key_satisfied()` is returning 0 when it has not checked any of the
keys
- This causes the cache'd value for the root inode to always be invalid
(`mdc_xattr_satisfied()` returns 0, which causes us to jump to `uncached').
- In this diff we add a new option called "strict-xattrs", when enabled winds
getxattr calls for those keys not present in our cache.
- This allows "special" getxattr commands (quota cli commands for example) to
work when md-cache is enabled.
- This is a port of D4135452
Test Plan:
- Test on devserver and see latency improvements for root inode.
- Prove tests
Signed-off-by: Shreyas Siravara <sshreyas at fb.com>
Change-Id: I8ff75595e821d7a714224b3b3dded23f0a93560a
Reviewed-on: http://review.gluster.org/16060
Smoke: Gluster Build System <jenkins at build.gluster.org>
CentOS-regression: Gluster Build System <jenkins at build.gluster.org>
Reviewed-by: Kevin Vigor <kvigor at fb.com>
Tested-by: Shreyas Siravara <sshreyas at fb.com>
NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
More information about the Bugs
mailing list