forked from openzfs/zfs
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle all final iput()'s in the unlink call path asynchronously to avoid deadlocking. One example of an observed deadlock is shown below. Call Trace: [<ffffffffa050adab>] rrw_enter_read+0x7b/0x230 [zfs] [<ffffffffa059519e>] zpl_writepages+0x4e/0x1a0 [zfs] [<ffffffff81135191>] do_writepages+0x21/0x40 [<ffffffff811b67dd>] writeback_single_inode+0xdd/0x290 [<ffffffff811b6ac8>] write_inode_now+0xa8/0x130 [<ffffffff811a6a88>] generic_detach_inode+0x88/0x1f0 [<ffffffff811a7b6d>] generic_drop_inode+0x1d/0x80 [<ffffffff811a69f2>] iput+0x62/0x70 [<ffffffffa0555dc7>] zfs_purgedir+0x1e7/0x280 [zfs] [<ffffffffa05560c5>] zfs_rmnode+0x265/0x410 [zfs] [<ffffffffa057d10e>] zfs_zinactive+0xfe/0x200 [zfs] [<ffffffffa0577d7f>] zfs_inactive+0x7f/0x370 [zfs] [<ffffffffa0596a7e>] zpl_clear_inode+0xe/0x10 [zfs] [<ffffffff811a7372>] clear_inode+0xd2/0x160 [<ffffffff811a7b83>] generic_drop_inode+0x33/0x80 [<ffffffff811a69f2>] iput+0x62/0x70 [<ffffffffa055609c>] zfs_rmnode+0x23c/0x410 [zfs] [<ffffffffa057d10e>] zfs_zinactive+0xfe/0x200 [zfs] [<ffffffffa0577d7f>] zfs_inactive+0x7f/0x370 [zfs] [<ffffffffa0596a7e>] zpl_clear_inode+0xe/0x10 [zfs] [<ffffffff811a7372>] clear_inode+0xd2/0x160 [<ffffffffa0596c10>] zpl_inode_delete+0x20/0x30 [zfs] [<ffffffff811a7a5e>] generic_delete_inode+0xde/0x1d0 [<ffffffff811a7bb5>] generic_drop_inode+0x65/0x80 [<ffffffff811a69f2>] iput+0x62/0x70 [<ffffffffa03b7519>] taskq_thread+0x269/0x5c0 [spl] [<ffffffffa03b72b0>] ? taskq_thread+0x0/0x5c0 [spl] [<ffffffff8109b4d6>] kthread+0x96/0xa0 Signed-off-by: Brian Behlendorf <[email protected]>
- Loading branch information
1 parent
26cb948
commit 43cc1b5
Showing
4 changed files
with
17 additions
and
11 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
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