Whamcloud - gitweb
b=20680 add sleep to expire stat cache
[fs/lustre-release.git] / lustre / liblustre / lutil.c
index fc9bc5d..d2752e1 100644 (file)
@@ -129,6 +129,7 @@ void liblustre_init_random()
                 if (syscall(SYS_read, _rand_dev_fd,
                             &seed, sizeof(seed)) == sizeof(seed)) {
                         ll_srand(seed[0], seed[1]);
+                        syscall(SYS_close, _rand_dev_fd);
                         return;
                 }
                 syscall(SYS_close, _rand_dev_fd);
@@ -181,7 +182,7 @@ static void init_capability(__u32 *res)
 #endif
 }
 
-int in_group_p(gid_t gid)
+int cfs_curproc_is_in_groups(gid_t gid)
 {
         int i;