Bug 1428050

Summary: performance/md-cache: Fix caching for root inode
Product: [Community] GlusterFS Reporter: Vijay Bellur <vbellur>
Component: md-cacheAssignee: bugs <bugs>
Status: CLOSED DUPLICATE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: mainlineCC: bugs
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
831/
Last Closed: 2017-04-18 20:09:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Vijay Bellur 2017-03-01 19:04:46 UTC
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>

Change-Id: I8ff75595e821d7a714224b3b3dded23f0a93560a
Reviewed-on: http://review.gluster.org/16060
Smoke: Gluster Build System <jenkins.org>
CentOS-regression: Gluster Build System <jenkins.org>
Reviewed-by: Kevin Vigor <kvigor>
Tested-by: Shreyas Siravara <sshreyas>
NetBSD-regression: NetBSD Build System <jenkins.org>

Comment 1 Worker Ant 2017-03-02 20:26:07 UTC
REVIEW: https://review.gluster.org/16831 (performance/md-cache: Fix caching for root inode) posted (#1) for review on master by Vijay Bellur (vbellur)

Comment 2 Vijay Bellur 2017-04-18 20:09:59 UTC

*** This bug has been marked as a duplicate of bug 1404442 ***