aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/glock.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/gfs2/glock.c')
-rw-r--r--fs/gfs2/glock.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c
index 321945fde12d..4df78ecfeeb3 100644
--- a/fs/gfs2/glock.c
+++ b/fs/gfs2/glock.c
@@ -149,7 +149,7 @@ int gfs2_glock_put(struct gfs2_glock *gl)
149 struct gfs2_gl_hash_bucket *bucket = gl->gl_bucket; 149 struct gfs2_gl_hash_bucket *bucket = gl->gl_bucket;
150 int rv = 0; 150 int rv = 0;
151 151
152 down(&sdp->sd_invalidate_inodes_mutex); 152 mutex_lock(&sdp->sd_invalidate_inodes_mutex);
153 153
154 write_lock(&bucket->hb_lock); 154 write_lock(&bucket->hb_lock);
155 if (kref_put(&gl->gl_ref, kill_glock)) { 155 if (kref_put(&gl->gl_ref, kill_glock)) {
@@ -161,7 +161,7 @@ int gfs2_glock_put(struct gfs2_glock *gl)
161 } 161 }
162 write_unlock(&bucket->hb_lock); 162 write_unlock(&bucket->hb_lock);
163 out: 163 out:
164 up(&sdp->sd_invalidate_inodes_mutex); 164 mutex_unlock(&sdp->sd_invalidate_inodes_mutex);
165 return rv; 165 return rv;
166} 166}
167 167
@@ -2312,9 +2312,9 @@ void gfs2_gl_hash_clear(struct gfs2_sbd *sdp, int wait)
2312 invalidate_inodes_mutex prevents glock_put()'s during 2312 invalidate_inodes_mutex prevents glock_put()'s during
2313 an invalidate_inodes() */ 2313 an invalidate_inodes() */
2314 2314
2315 down(&sdp->sd_invalidate_inodes_mutex); 2315 mutex_lock(&sdp->sd_invalidate_inodes_mutex);
2316 invalidate_inodes(sdp->sd_vfs); 2316 invalidate_inodes(sdp->sd_vfs);
2317 up(&sdp->sd_invalidate_inodes_mutex); 2317 mutex_unlock(&sdp->sd_invalidate_inodes_mutex);
2318 yield(); 2318 yield();
2319 } 2319 }
2320} 2320}