X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fllite%2Fxattr.c;h=9cb21b8fe29b925d509eaccc0d097b1bf61739e0;hp=35789c6ca130bc70dc6e03a472077716deafb2f1;hb=8a11cb6282cfbdc8617b809344e6a11223e86a38;hpb=d099fdd6cd15d0d00d9b573da5d3bfd3e4bbcb9d diff --git a/lustre/llite/xattr.c b/lustre/llite/xattr.c index 35789c6..9cb21b8 100644 --- a/lustre/llite/xattr.c +++ b/lustre/llite/xattr.c @@ -361,7 +361,10 @@ int ll_getxattr_common(struct inode *inode, const char *name, #endif do_getxattr: - if (sbi->ll_xattr_cache_enabled && xattr_type != XATTR_ACL_ACCESS_T) { + if (sbi->ll_xattr_cache_enabled && + xattr_type != XATTR_ACL_ACCESS_T && + (xattr_type != XATTR_SECURITY_T || + strcmp(name, "security.selinux") != 0)) { rc = ll_xattr_cache_get(inode, name, buffer, size, valid); if (rc == -EAGAIN) goto getxattr_nocache;