From 26bf41c177a521fc3f4d9ac201f9cf95ee32915c Mon Sep 17 00:00:00 2001 From: Mr NeilBrown Date: Thu, 22 Aug 2019 15:33:40 +1000 Subject: [PATCH] LU-6142 llite: remove lli_readdir_mutex This mutex is initialized but never used, so remove it. Test-Parameters: trivial Signed-off-by: Mr NeilBrown Change-Id: I8df34923c44892dbf3a4e0bb603209cfe28adb1b Reviewed-on: https://review.whamcloud.com/35884 Tested-by: jenkins Reviewed-by: Andreas Dilger Tested-by: Maloo Reviewed-by: James Simmons Reviewed-by: Shaun Tancheff Reviewed-by: Arshad Hussain --- lustre/llite/llite_internal.h | 3 --- lustre/llite/llite_lib.c | 1 - 2 files changed, 4 deletions(-) diff --git a/lustre/llite/llite_internal.h b/lustre/llite/llite_internal.h index 1ae04bb..df6a00c 100644 --- a/lustre/llite/llite_internal.h +++ b/lustre/llite/llite_internal.h @@ -143,9 +143,6 @@ struct ll_inode_info { union { /* for directory */ struct { - /* serialize normal readdir and statahead-readdir. */ - struct mutex lli_readdir_mutex; - /* metadata statahead */ /* since parent-child threads can share the same @file * struct, "opendir_key" is the token when dir close for diff --git a/lustre/llite/llite_lib.c b/lustre/llite/llite_lib.c index 8e21087..26cc9e0 100644 --- a/lustre/llite/llite_lib.c +++ b/lustre/llite/llite_lib.c @@ -983,7 +983,6 @@ void ll_lli_init(struct ll_inode_info *lli) LASSERT(lli->lli_vfs_inode.i_mode != 0); if (S_ISDIR(lli->lli_vfs_inode.i_mode)) { - mutex_init(&lli->lli_readdir_mutex); lli->lli_opendir_key = NULL; lli->lli_sai = NULL; spin_lock_init(&lli->lli_sa_lock); -- 1.8.3.1