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>
Mon, 30 Apr 2012 02:18:23 +0000 (22:18 -0400)
commit7cc542fd4c26ccb117ceb13a47ac8ced3107b9b3
treeaffa4d00c94b9df186bfc520b816ea91e9be387d
parent2ad3935e89aac78ce73f3bcdbecd8286cfa52970
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>
Change-Id: I5e416093bba4126e5fcad62d8c0a2963c1866386
Reviewed-on: http://review.whamcloud.com/2503
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Fan Yong <yong.fan@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/autoconf/lustre-core.m4
lustre/include/linux/lustre_compat25.h
lustre/llite/xattr.c