From 6c9999b06f544c529511152671b6511413e261d6 Mon Sep 17 00:00:00 2001 From: yangsheng Date: Fri, 13 Aug 2010 17:05:28 +0400 Subject: [PATCH] b=17630 Don't export nfs when work with 4k stack. i=adilger --- lustre/ChangeLog | 3 +++ lustre/llite/llite_lib.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/lustre/ChangeLog b/lustre/ChangeLog index e23a18c..0a3963c 100644 --- a/lustre/ChangeLog +++ b/lustre/ChangeLog @@ -11,6 +11,9 @@ TBD Oracle, Inc. 2.6.27.19-5 (SLES11) 2.6.29.4-167.fc11 (FC11) * Recommended e2fsprogs version: 1.41.10-sun2 + * NFS export disabled when stack size < 8192. Since the NFSv4 export of + Lustre filesystem with 4K stack may cause a stack overflow. For more + information, please refer to bugzilla 17630. -------------------------------------------------------------------------------- diff --git a/lustre/llite/llite_lib.c b/lustre/llite/llite_lib.c index 486905e..9ef782f 100644 --- a/lustre/llite/llite_lib.c +++ b/lustre/llite/llite_lib.c @@ -413,7 +413,9 @@ static int client_common_fill_super(struct super_block *sb, char *md, char *dt) CDEBUG(D_SUPER, "rootfid "DFID"\n", PFID(&sbi->ll_root_fid)); sb->s_op = &lustre_super_operations; +#if THREAD_SIZE >= 8192 sb->s_export_op = &lustre_export_operations; +#endif /* make root inode * XXX: move this to after cbd setup? */ -- 1.8.3.1