Re: [PATCH v2] Btrfs: fix assertion failure when freeing block groups at close_ctree()

2017-02-02 Thread Liu Bo
On Thu, Feb 02, 2017 at 05:56:33PM +, fdman...@kernel.org wrote: > From: Filipe Manana > > At close_ctree() we free the block groups and then only after we wait for > any running worker kthreads to finish and shutdown the workqueues. This > behaviour is racy and it triggers an assertion failu

[PATCH v2] Btrfs: fix assertion failure when freeing block groups at close_ctree()

2017-02-02 Thread fdmanana
From: Filipe Manana At close_ctree() we free the block groups and then only after we wait for any running worker kthreads to finish and shutdown the workqueues. This behaviour is racy and it triggers an assertion failure when freeing block groups because while we are doing it we can have for exam