Files
mirror_zfs/include/sys
ilbsmart 98bb45e27a deadlock between mm_sem and tx assign in zfs_write() and page fault
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
2019-02-22 09:47:34 -08:00
..
2018-05-07 17:19:56 -07:00
2016-01-08 15:08:19 -08:00
2016-06-28 13:47:02 -07:00
2014-07-29 10:55:29 -07:00
2013-11-04 11:18:14 -08:00
2017-07-13 13:54:00 -04:00
2013-11-04 11:17:48 -08:00
2017-01-03 11:31:18 -06:00
2017-07-13 13:54:00 -04:00
2014-08-13 10:35:00 -07:00
2016-04-21 09:49:25 -07:00
2016-06-07 09:16:52 -07:00
2014-07-30 09:20:35 -07:00
2016-12-01 16:39:06 -07:00
2015-01-06 16:53:24 -08:00
2017-01-03 11:31:18 -06:00
2017-07-13 13:54:00 -04:00
2013-11-04 10:55:25 -08:00
2018-01-30 10:27:30 -06:00
2017-03-10 09:51:33 -08:00
2017-03-10 09:51:33 -08:00
2013-12-18 16:46:35 -08:00
2017-03-10 09:51:33 -08:00
2017-03-10 09:51:33 -08:00
2017-03-10 09:51:33 -08:00
2018-07-06 02:46:51 -07:00
2017-03-29 12:24:51 -07:00
2017-07-12 13:05:37 -07:00