diff options
Diffstat (limited to 'fs/gfs2/glock.c')
-rw-r--r-- | fs/gfs2/glock.c | 43 |
1 files changed, 25 insertions, 18 deletions
diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c index 931368a385c8..d631cad0aeee 100644 --- a/fs/gfs2/glock.c +++ b/fs/gfs2/glock.c | |||
@@ -1106,24 +1106,31 @@ static void add_to_queue(struct gfs2_holder *gh) | |||
1106 | if (test_and_set_bit(HIF_WAIT, &gh->gh_iflags)) | 1106 | if (test_and_set_bit(HIF_WAIT, &gh->gh_iflags)) |
1107 | BUG(); | 1107 | BUG(); |
1108 | 1108 | ||
1109 | existing = find_holder_by_owner(&gl->gl_holders, gh->gh_owner_pid); | 1109 | if (!(gh->gh_flags & GL_FLOCK)) { |
1110 | if (existing) { | 1110 | existing = find_holder_by_owner(&gl->gl_holders, |
1111 | print_symbol(KERN_WARNING "original: %s\n", existing->gh_ip); | 1111 | gh->gh_owner_pid); |
1112 | printk(KERN_INFO "pid : %d\n", existing->gh_owner_pid); | 1112 | if (existing) { |
1113 | printk(KERN_INFO "lock type : %d lock state : %d\n", | 1113 | print_symbol(KERN_WARNING "original: %s\n", |
1114 | existing->gh_gl->gl_name.ln_type, existing->gh_gl->gl_state); | 1114 | existing->gh_ip); |
1115 | print_symbol(KERN_WARNING "new: %s\n", gh->gh_ip); | 1115 | printk(KERN_INFO "pid : %d\n", existing->gh_owner_pid); |
1116 | printk(KERN_INFO "pid : %d\n", gh->gh_owner_pid); | 1116 | printk(KERN_INFO "lock type : %d lock state : %d\n", |
1117 | printk(KERN_INFO "lock type : %d lock state : %d\n", | 1117 | existing->gh_gl->gl_name.ln_type, |
1118 | gl->gl_name.ln_type, gl->gl_state); | 1118 | existing->gh_gl->gl_state); |
1119 | BUG(); | 1119 | print_symbol(KERN_WARNING "new: %s\n", gh->gh_ip); |
1120 | } | 1120 | printk(KERN_INFO "pid : %d\n", gh->gh_owner_pid); |
1121 | 1121 | printk(KERN_INFO "lock type : %d lock state : %d\n", | |
1122 | existing = find_holder_by_owner(&gl->gl_waiters3, gh->gh_owner_pid); | 1122 | gl->gl_name.ln_type, gl->gl_state); |
1123 | if (existing) { | 1123 | BUG(); |
1124 | print_symbol(KERN_WARNING "original: %s\n", existing->gh_ip); | 1124 | } |
1125 | print_symbol(KERN_WARNING "new: %s\n", gh->gh_ip); | 1125 | |
1126 | BUG(); | 1126 | existing = find_holder_by_owner(&gl->gl_waiters3, |
1127 | gh->gh_owner_pid); | ||
1128 | if (existing) { | ||
1129 | print_symbol(KERN_WARNING "original: %s\n", | ||
1130 | existing->gh_ip); | ||
1131 | print_symbol(KERN_WARNING "new: %s\n", gh->gh_ip); | ||
1132 | BUG(); | ||
1133 | } | ||
1127 | } | 1134 | } |
1128 | 1135 | ||
1129 | if (gh->gh_flags & LM_FLAG_PRIORITY) | 1136 | if (gh->gh_flags & LM_FLAG_PRIORITY) |