diff options
| author | Shreyas Siravara <sshreyas@fb.com> | 2016-11-02 14:32:32 -0700 |
|---|---|---|
| committer | Shreyas Siravara <sshreyas@fb.com> | 2016-12-08 09:40:01 -0800 |
| commit | 9ca52cbf3ff540a3be6f7b5345e4af0f528c9c52 (patch) | |
| tree | f8af3125c76cd0ca4f4fabc1e36f70043b2e683f /xlators/performance/open-behind | |
| parent | 1508cde8e6022ae40a63cfaf94a7ee387e188dcf (diff) | |
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@fb.com>
Change-Id: I8ff75595e821d7a714224b3b3dded23f0a93560a
Reviewed-on: http://review.gluster.org/16060
Smoke: Gluster Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Kevin Vigor <kvigor@fb.com>
Tested-by: Shreyas Siravara <sshreyas@fb.com>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
Diffstat (limited to 'xlators/performance/open-behind')
0 files changed, 0 insertions, 0 deletions
