Whamcloud - gitweb
LU-549 llite: Improve statfs performance if selinux is disabled
authorYevheniy Demchenko <zheka@uvt.cz>
Tue, 10 Apr 2012 20:01:14 +0000 (22:01 +0200)
committerOleg Drokin <green@whamcloud.com>
Sun, 27 May 2012 15:05:34 +0000 (11:05 -0400)
commit4fe64c3ae61bc86b99711de435876657e29d32ae
tree7075cebd1e79c8b94f2273e90bf2db150367d6e3
parentd59f314b110088fccab706033fd78e44b0e568b9
LU-549 llite: Improve statfs performance if selinux is disabled

Even if selinux is disabled, client still tries to get selinux
attributes from MDS. As xattrs are not yet cached, this significantly
slows down xattr heavy operations like ls -l. This patch forces
to return -EOPNOTSUPP on the client side if selinux is disabled.
It speeds up ls -l 25% for cold-cache case and 50% for hot-cache
case.

Signed-off-by: Yevheniy Demchenko <zheka@uvt.cz>
Signed-off-by: Keith Mannthey <keith@whamcloud.com>
Change-Id: I0c24bd8559818b0fae29a082790b392095f91ab5
:# Please enter the commit message for your changes. Lines starting
Reviewed-on: http://review.whamcloud.com/2904
Tested-by: Hudson
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/autoconf/lustre-core.m4
lustre/include/linux/lustre_compat25.h
lustre/llite/xattr.c