Whamcloud - gitweb
LU-4423 lustre: convert rsi_sem to a spinlock.
[fs/lustre-release.git] / lustre / mdt / mdt_handler.c
index fdc360e..78a28d5 100644 (file)
@@ -5174,7 +5174,7 @@ static int mdt_init0(const struct lu_env *env, struct mdt_device *m,
        m->mdt_squash.rsi_uid = 0;
        m->mdt_squash.rsi_gid = 0;
        INIT_LIST_HEAD(&m->mdt_squash.rsi_nosquash_nids);
-       init_rwsem(&m->mdt_squash.rsi_sem);
+       spin_lock_init(&m->mdt_squash.rsi_lock);
        spin_lock_init(&m->mdt_lock);
        m->mdt_enable_remote_dir = 1;
        m->mdt_enable_striped_dir = 1;