Commit 559cce6
jbd2: fix incorrect unlock on j_list_lock
When 'jh->b_transaction == transaction' (asserted by below)
J_ASSERT_JH(jh, (jh->b_transaction == transaction || ...
'journal->j_list_lock' will be incorrectly unlocked, since
the the lock is aquired only at the end of if / else-if
statements (missing the else case).
Signed-off-by: Taesoo Kim <tsgatesv@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Fixes: 6e4862a
Cc: stable@vger.kernel.org # 3.14+1 parent 651e1c3 commit 559cce6
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1149 | 1149 | | |
1150 | 1150 | | |
1151 | 1151 | | |
| 1152 | + | |
1152 | 1153 | | |
1153 | 1154 | | |
1154 | 1155 | | |
1155 | 1156 | | |
1156 | 1157 | | |
1157 | 1158 | | |
1158 | 1159 | | |
| 1160 | + | |
1159 | 1161 | | |
1160 | | - | |
1161 | 1162 | | |
1162 | 1163 | | |
1163 | 1164 | | |
| |||
0 commit comments