Re: [RFC 0/1] ubifs: inode deletion deadlock

From: Wang Zhaolong
Date: Wed Jul 10 2024 - 23:13:09 EST




Hi.

While the previous patch set [1] aimed to address the ABBA deadlock between
inode reclaiming and deleted inode writing, I discovered that the problem
still persists in the form of an AA deadlock after applying those changes.

The core issue is that although [1] avoids the ABBA deadlock by getting the
xattr inodes before locking BASEHD's wbuf->io_mutex. But the inode reclaiming
process can still get stuck waiting for the xattr inodes that have already
been marked as I_FREEING.


My bad, I need to add the link [1]

https://patchwork.ozlabs.org/project/linux-mtd/list/?series=414540 [1]