diff options
Diffstat (limited to 'fs/gfs2')
-rw-r--r-- | fs/gfs2/glock.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c index 5c8790960735..fca6a873dcf3 100644 --- a/fs/gfs2/glock.c +++ b/fs/gfs2/glock.c | |||
@@ -890,12 +890,6 @@ int gfs2_glock_wait(struct gfs2_holder *gh) | |||
890 | return gh->gh_error; | 890 | return gh->gh_error; |
891 | } | 891 | } |
892 | 892 | ||
893 | static void wait_on_demote(struct gfs2_glock *gl) | ||
894 | { | ||
895 | might_sleep(); | ||
896 | wait_on_bit(&gl->gl_flags, GLF_DEMOTE, gfs2_glock_demote_wait, TASK_UNINTERRUPTIBLE); | ||
897 | } | ||
898 | |||
899 | /** | 893 | /** |
900 | * handle_callback - process a demote request | 894 | * handle_callback - process a demote request |
901 | * @gl: the glock | 895 | * @gl: the glock |
@@ -1123,7 +1117,8 @@ void gfs2_glock_dq_wait(struct gfs2_holder *gh) | |||
1123 | { | 1117 | { |
1124 | struct gfs2_glock *gl = gh->gh_gl; | 1118 | struct gfs2_glock *gl = gh->gh_gl; |
1125 | gfs2_glock_dq(gh); | 1119 | gfs2_glock_dq(gh); |
1126 | wait_on_demote(gl); | 1120 | might_sleep(); |
1121 | wait_on_bit(&gl->gl_flags, GLF_DEMOTE, gfs2_glock_demote_wait, TASK_UNINTERRUPTIBLE); | ||
1127 | } | 1122 | } |
1128 | 1123 | ||
1129 | /** | 1124 | /** |