Files
mirror_zfs/module/zfs
Andy Fiddaman cee725c9bd Dangling reference from dmu_objset_upgrade
After porting the fix for https://github.com/openzfs/zfs/issues/5295
over to illumos, we started hitting an assertion failure when running
the testsuite:

	assertion failed: rc->rc_count == number, file: .../refcount.c

and the unexpected hold has this stack:

	dsl_dataset_long_hold+0x59 dmu_objset_upgrade+0x73
dmu_objset_id_quota_upgrade+0x15 dmu_objset_own+0x14f

The simplest reproducer for this in illumos is

    zpool create -f -O version=1 testpool c3t0d0; zpool destroy testpool

which is run as part of the zpool_create_tempname test, but I can't get
this to trigger on FreeBSD. This appears to be because of the call to
txg_wait_synced() in dmu_objset_upgrade_stop() (which was missing in
illumos), slows down dmu_objset_disown() enough to avoid the condition.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Andy Fiddaman <andy@omnios.org>
Closes #11368
2020-12-23 14:35:47 -08:00
..
2020-07-24 21:09:20 -07:00
2020-11-17 12:19:46 -08:00
2020-08-20 10:30:06 -07:00
2019-07-26 10:54:14 -07:00
2020-07-29 16:35:33 -07:00
2020-07-29 16:35:33 -07:00
2019-06-19 09:48:12 -07:00
2020-08-17 15:25:37 -07:00
2020-06-18 12:21:18 -07:00
2019-12-03 09:51:44 -08:00
2020-06-18 12:21:25 -07:00
2020-08-20 10:30:06 -07:00
2020-11-11 11:03:24 -08:00
2020-08-25 08:34:41 -07:00
2020-08-20 10:30:06 -07:00
2020-06-18 12:20:38 -07:00
2020-09-09 10:25:59 -07:00
2020-06-18 12:21:25 -07:00
2020-09-09 10:26:00 -07:00
2020-06-18 12:21:25 -07:00
2017-10-11 16:54:48 -04:00
2020-06-18 12:21:25 -07:00
2019-06-19 09:48:12 -07:00
2020-07-29 16:35:33 -07:00
2020-07-29 16:35:33 -07:00
2020-08-27 16:06:52 -07:00
2020-06-18 12:21:25 -07:00
2020-06-18 12:21:25 -07:00
2020-06-18 12:21:25 -07:00
2019-09-02 17:56:41 -07:00
2019-10-09 10:36:03 -07:00
2020-09-09 10:25:59 -07:00
2020-09-09 10:25:59 -07:00
2020-09-09 10:25:59 -07:00
2020-11-22 10:01:43 -08:00
2020-07-29 16:35:33 -07:00
2020-06-18 12:21:25 -07:00
2019-09-02 17:56:41 -07:00
2020-10-16 12:55:56 -07:00
2020-06-18 12:20:38 -07:00
2020-09-09 10:26:00 -07:00
2020-10-16 12:55:56 -07:00
2020-06-18 12:20:38 -07:00
2020-11-11 18:46:22 -08:00
2020-06-18 12:21:25 -07:00
2020-06-18 12:21:18 -07:00
2020-09-09 10:21:16 -07:00
2020-11-17 12:20:09 -08:00