On Wed, Mar 14, 2012 at 07:17:09PM +0800, Liu Bo wrote:
> This deadlock comes from xfstests 251.
> 
> We'll hold the chunk_mutex throughout the whole of a chunk allocation.
> But if we find that we've used up system chunk space, we need to allocate a
> new system chunk, but this will lead to a recursion of chunk allocation and 
> end
> up with a deadlock on chunk_mutex.
> So instead we need to allocate the system chunk first if we find we're in 
> ENOSPC.

I'm using this patch without problem since you published it (compressed
/home with hourly snapshot delete/creation).

Thanks a lot for your work,
Andrea
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to