forked from openzfs/zfs
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow zfs_purgedir() to skip inodes undergoing eviction
When destroying a file which contains xattrs the xattr directory inode and its child inodes may be acquired with zfs_zget(). This can result in a deadlock if these inodes are part of the same disposal list. This is only possible in zfs_purgedir() because it is called from evict() while processing this disposal list. Prevent this deadlock by allowing zfs_zget() to fail in zfs_purgedir(). The object will be left in the unlinked set and processing of it will be deferred via the existing mechanisms. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Issue openzfs#4816
- Loading branch information
1 parent
5c27b29
commit 761d7ac
Showing
3 changed files
with
31 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters