aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/gfs2/file.c')
-rw-r--r--fs/gfs2/file.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/gfs2/file.c b/fs/gfs2/file.c
index 216ad2774a62..2878481f72a9 100644
--- a/fs/gfs2/file.c
+++ b/fs/gfs2/file.c
@@ -981,8 +981,10 @@ static void do_unflock(struct file *file, struct file_lock *fl)
981 981
982 mutex_lock(&fp->f_fl_mutex); 982 mutex_lock(&fp->f_fl_mutex);
983 flock_lock_file_wait(file, fl); 983 flock_lock_file_wait(file, fl);
984 if (fl_gh->gh_gl) 984 if (fl_gh->gh_gl) {
985 gfs2_glock_dq_uninit(fl_gh); 985 gfs2_glock_dq_wait(fl_gh);
986 gfs2_holder_uninit(fl_gh);
987 }
986 mutex_unlock(&fp->f_fl_mutex); 988 mutex_unlock(&fp->f_fl_mutex);
987} 989}
988 990