Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wait iput_async before evict_inodes to prevent race
wait for iput_async before entering evict_inodes in generic_shutdown_super. The reason we must finish before evict_inodes is iput when lazytime and zfs_purgedir calling zfs_zget would bump i_count from 0 to 1. This would race with the i_count check in evict_inodes, so it could destroy the inode while we are still using it. Signed-off-by: Chunwei Chen <[email protected]>
- Loading branch information