Commit a56da69
Kent Overstreet
bcachefs: Fix bch2_trans_put()
reference: koverstreet/bcachefs#692
trans->ref is the reference used by the cycle detector, which walks
btree_trans objects of other threads to walk the graph of held locks and
issue wakeups when an abort is required.
We have to wait for the ref to go to 1 before freeing trans->paths or
clearing trans->locking_wait.task.
Signed-off-by: Kent Overstreet <[email protected]>1 parent 0a2a507 commit a56da69
1 file changed
+8
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3161 | 3161 | | |
3162 | 3162 | | |
3163 | 3163 | | |
| 3164 | + | |
3164 | 3165 | | |
3165 | 3166 | | |
3166 | 3167 | | |
| |||
3235 | 3236 | | |
3236 | 3237 | | |
3237 | 3238 | | |
3238 | | - | |
3239 | 3239 | | |
3240 | 3240 | | |
3241 | 3241 | | |
| |||
3256 | 3256 | | |
3257 | 3257 | | |
3258 | 3258 | | |
| 3259 | + | |
| 3260 | + | |
| 3261 | + | |
| 3262 | + | |
| 3263 | + | |
| 3264 | + | |
| 3265 | + | |
3259 | 3266 | | |
3260 | 3267 | | |
3261 | 3268 | | |
| |||
3273 | 3280 | | |
3274 | 3281 | | |
3275 | 3282 | | |
3276 | | - | |
3277 | | - | |
3278 | 3283 | | |
3279 | 3284 | | |
3280 | 3285 | | |
| |||
0 commit comments