Whamcloud - gitweb
LU-6142 llite: remove lli_readdir_mutex 84/35884/3
authorMr NeilBrown <neilb@suse.com>
Thu, 22 Aug 2019 05:33:40 +0000 (15:33 +1000)
committerOleg Drokin <green@whamcloud.com>
Mon, 16 Sep 2019 23:01:56 +0000 (23:01 +0000)
This mutex is initialized but never used, so
remove it.

Test-Parameters: trivial
Signed-off-by: Mr NeilBrown <neilb@suse.com>
Change-Id: I8df34923c44892dbf3a4e0bb603209cfe28adb1b
Reviewed-on: https://review.whamcloud.com/35884
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Shaun Tancheff <stancheff@cray.com>
Reviewed-by: Arshad Hussain <arshad.super@gmail.com>
lustre/llite/llite_internal.h
lustre/llite/llite_lib.c

index 1ae04bb..df6a00c 100644 (file)
@@ -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
index 8e21087..26cc9e0 100644 (file)
@@ -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);