mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-10-24 08:55:00 +03:00
The bug time sequence: 1. thread #1, `zfs_write` assign a txg "n". 2. In a same process, thread #2, mmap page fault (which means the `mm_sem` is hold) occurred, `zfs_dirty_inode` open a txg failed, and wait previous txg "n" completed. 3. thread #1 call `uiomove` to write, however page fault is occurred in `uiomove`, which means it need `mm_sem`, but `mm_sem` is hold by thread #2, so it stuck and can't complete, then txg "n" will not complete. So thread #1 and thread #2 are deadlocked. Reviewed-by: Chunwei Chen <tuxoko@gmail.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Matthew Ahrens <mahrens@delphix.com> Signed-off-by: Grady Wong <grady.w@xtaotech.com> Closes #7939 |
||
|---|---|---|
| .. | ||
| chg_usr_exec | ||
| devname2devid | ||
| dir_rd_update | ||
| file_check | ||
| file_trunc | ||
| file_write | ||
| largest_file | ||
| libzfs_input_check | ||
| mkbusy | ||
| mkfile | ||
| mkfiles | ||
| mktree | ||
| mmap_exec | ||
| mmap_libaio | ||
| mmapwrite | ||
| nvlist_to_lua | ||
| randfree_file | ||
| randwritecomp | ||
| readmmap | ||
| rename_dir | ||
| rm_lnkcnt_zero_file | ||
| threadsappend | ||
| user_ns_exec | ||
| xattrtest | ||
| file_common.h | ||
| Makefile.am | ||