Re: [PATCH] bcachefs: Fix state lock involved deadlock

2024-10-08 Thread Kent Overstreet
On Wed, Oct 09, 2024 at 01:33:05AM GMT, Alan Huang wrote: > We increased write ref, if the fs went to RO, that would lead to > a deadlock, it actually happens: > > 00171 = TEST generic/279 > 00171 > 00172 bcachefs (vdb): starting version 1.12: rebalance_work_acct_fix > opts=nocow > 0017

[PATCH] bcachefs: Fix state lock involved deadlock

2024-10-08 Thread Alan Huang
We increased write ref, if the fs went to RO, that would lead to a deadlock, it actually happens: 00171 = TEST generic/279 00171 00172 bcachefs (vdb): starting version 1.12: rebalance_work_acct_fix opts=nocow 00172 bcachefs (vdb): recovering from clean shutdown, journal seq 35 00172 bcac