Files
mirror_zfs/module/os/linux/zfs
Paul Dagnelie 2921ad6cba Fix zrele race in zrele_async that can cause hang
There is a race condition in zfs_zrele_async when we are checking if 
we would be the one to evict an inode. This can lead to a txg sync 
deadlock.

Instead of calling into iput directly, we attempt to perform the atomic 
decrement ourselves, unless that would set the i_count value to zero. 
In that case, we dispatch a call to iput to run later, to prevent a 
deadlock from occurring.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Signed-off-by: Paul Dagnelie <pcd@delphix.com>
Closes #11527 
Closes #11530
2021-01-27 21:29:58 -08:00
..
2020-12-10 14:09:23 -08:00
2019-09-12 13:33:44 -07:00
2019-09-12 13:33:44 -07:00
2020-12-27 16:20:33 -08:00
2020-11-13 13:51:51 -08:00
2020-10-13 21:25:48 -07:00
2020-11-10 12:42:47 -08:00
2020-10-02 17:44:10 -07:00
2020-04-10 10:33:35 -07:00
2020-11-10 12:42:47 -08:00
2021-01-20 21:27:30 -08:00
2021-01-20 21:27:30 -08:00
2021-01-20 21:27:30 -08:00
2021-01-20 21:27:30 -08:00
2021-01-20 21:27:30 -08:00