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
..
2016-10-03 14:51:15 -07:00
2017-07-12 21:28:13 -07:00
2018-05-07 17:19:56 -07:00
2017-12-04 17:21:03 -08:00
2018-11-08 14:38:28 -08:00
2018-11-08 14:38:28 -08:00
2018-11-08 14:38:28 -08:00
2010-09-08 12:38:56 -07:00
2016-08-31 14:35:34 -07:00
2017-07-07 11:28:01 -07:00
2010-09-08 12:38:56 -07:00
2015-05-11 15:10:24 -07:00
2014-08-06 14:48:41 -07:00
2016-01-08 15:08:19 -08:00
2019-02-22 09:47:34 -08:00
2016-11-29 14:34:27 -08:00
2018-11-08 14:38:28 -08:00
2018-07-06 02:46:51 -07:00
2017-10-16 10:57:55 -07:00
2016-06-28 13:47:02 -07:00
2018-11-08 14:38:28 -08:00
2016-08-30 14:26:55 -07:00
2018-07-06 02:46:51 -07:00
2019-02-22 09:47:34 -08:00
2014-07-29 10:55:29 -07:00
2018-11-08 14:38:28 -08:00
2010-09-08 12:38:56 -07:00
2016-10-07 09:45:13 -07:00
2013-11-04 11:18:14 -08:00
2018-07-06 02:46:51 -07:00
2017-07-13 13:54:00 -04:00
2016-01-12 10:53:12 -08:00
2017-07-06 22:16:13 -07:00
2015-05-04 09:41:10 -07:00
2013-11-04 11:17:48 -08:00
2016-10-03 14:51:15 -07:00
2017-01-03 11:31:18 -06:00
2017-07-13 13:54:00 -04:00
2018-11-08 14:38:28 -08:00
2017-01-12 11:52:56 -08:00
2018-05-07 17:19:56 -07:00
2016-04-05 18:55:59 -07:00
2017-03-20 18:36:00 -07:00
2010-09-08 12:38:56 -07: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
2018-11-08 14:38:28 -08:00
2018-11-08 14:38:28 -08:00
2018-11-08 14:38:28 -08:00
2016-12-01 16:39:06 -07:00
2017-07-25 23:09:48 -07:00
2016-10-03 14:51:15 -07:00
2016-10-03 14:51:15 -07:00
2010-09-08 12:38:56 -07:00
2016-06-02 14:30:51 -07:00
2018-11-08 14:38:28 -08:00
2018-07-06 02:46:51 -07:00
2014-10-23 15:30:32 -07:00
2014-07-22 09:39:16 -07:00
2017-07-12 21:28:13 -07:00
2018-03-14 16:10:36 -07:00
2017-01-24 08:50:15 -08:00
2016-05-26 10:11:51 -07:00
2017-07-25 23:09:48 -07:00
2018-11-08 14:38:28 -08:00
2018-09-13 10:12:22 -07:00
2017-01-24 08:50:15 -08:00
2017-01-24 08:50:15 -08:00
2017-01-24 08:50:15 -08:00
2017-06-09 09:15:37 -07:00
2016-12-12 10:46:26 -08:00
2016-12-12 10:46:26 -08:00
2015-01-06 16:53:24 -08:00
2017-01-03 11:31:18 -06:00
2017-05-10 13:52:22 -04:00
2010-09-08 12:38:56 -07:00
2010-09-08 12:38:56 -07:00
2017-07-24 13:47:51 -04:00
2017-07-13 13:54:00 -04:00
2019-02-22 09:47:34 -08:00
2013-11-04 10:55:25 -08:00
2010-09-08 12:38:56 -07:00
2018-09-13 10:11:42 -07:00
2016-12-21 10:47:15 -08:00
2018-03-14 16:10:38 -07:00
2018-01-30 10:27:31 -06:00
2016-12-12 10:46:26 -08:00
2018-01-30 10:27:30 -06:00
2018-07-06 02:46:51 -07:00
2017-03-07 09:51:59 -08:00
2018-07-06 02:46:51 -07:00
2018-11-08 14:38:28 -08:00
2016-05-17 11:52:07 -07:00
2017-03-10 09:51:33 -08:00
2018-07-06 02:46:51 -07:00
2017-03-10 09:51:33 -08:00
2017-07-25 23:09:48 -07: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-06-16 17:21:11 -07:00
2010-09-08 12:38:56 -07:00
2018-03-14 16:10:38 -07:00
2017-03-10 09:51:33 -08:00
2015-05-11 12:23:16 -07:00
2010-09-08 12:38:56 -07:00
2018-07-06 02:46:51 -07:00
2018-05-07 17:19:57 -07:00
2018-11-08 14:38:28 -08:00
2017-06-09 09:15:37 -07:00
2017-12-04 17:21:39 -08:00
2017-03-29 12:24:51 -07:00
2016-11-29 14:34:27 -08:00
2016-12-01 16:36:25 -07:00
2016-05-12 12:36:32 -07:00
2018-11-08 14:38:28 -08:00
2018-07-06 02:46:51 -07:00
2017-01-12 09:42:11 -08:00
2017-07-12 13:05:37 -07:00