freebsd-nq/module/zfs
Ricardo M. Correia 090ff0929e Fix commit callbacks
The upstream commit cb code had a few bugs:

1) The arguments of the list_move_tail() call in txg_dispatch_callbacks()
were reversed by mistake. This caused the commit callbacks to not be
called at all.

2) ztest had a bug in ztest_dmu_commit_callbacks() where "error" was not
initialized correctly. This seems to have caused the test to always take
the simulated error code path, which made ztest unable to detect whether
commit cbs were being called for transactions that successfuly complete.

3) ztest had another bug in ztest_dmu_commit_callbacks() where the commit
cb threshold was not being compared correctly.

4) The commit cb taskq was using 'max_ncpus * 2' as the maxalloc argument
of taskq_create(), which could have caused unnecessary delays in the txg
sync thread.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
2010-08-31 08:38:44 -07:00
..
include/sys Fix gcc invalid prototype warnings 2010-08-27 15:34:03 -07:00
arc.c Fix gcc uninitialized variable warnings 2010-08-31 08:38:43 -07:00
bplist.c Fix gcc missing parenthesis warnings 2010-08-31 08:38:35 -07:00
bpobj.c Update to onnv_147 2010-08-26 14:24:34 -07:00
dbuf.c Fix gcc unused variable warnings 2010-08-31 08:38:43 -07:00
ddt_zap.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
ddt.c Fix gcc c90 compliance warnings 2010-08-27 15:28:32 -07:00
dmu_diff.c Update to onnv_147 2010-08-26 14:24:34 -07:00
dmu_object.c Update to onnv_147 2010-08-26 14:24:34 -07:00
dmu_objset.c Fix gcc uninitialized variable warnings 2010-08-31 08:38:43 -07:00
dmu_send.c Fix gcc missing parenthesis warnings 2010-08-31 08:38:35 -07:00
dmu_traverse.c Update to onnv_147 2010-08-26 14:24:34 -07:00
dmu_tx.c Fix gcc missing parenthesis warnings 2010-08-31 08:38:35 -07:00
dmu_zfetch.c Fix gcc missing parenthesis warnings 2010-08-31 08:38:35 -07:00
dmu.c Fix gcc uninitialized variable warnings 2010-08-31 08:38:43 -07:00
dnode_sync.c Fix gcc unused variable warnings 2010-08-31 08:38:43 -07:00
dnode.c Fix gcc unused variable warnings 2010-08-31 08:38:43 -07:00
dsl_dataset.c Fix gcc uninitialized variable warnings 2010-08-31 08:38:43 -07:00
dsl_deadlist.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
dsl_deleg.c Fix gcc missing parenthesis warnings 2010-08-31 08:38:35 -07:00
dsl_dir.c Fix gcc unused variable warnings 2010-08-31 08:38:43 -07:00
dsl_pool.c Fix gcc missing parenthesis warnings 2010-08-31 08:38:35 -07:00
dsl_prop.c Fix gcc missing parenthesis warnings 2010-08-31 08:38:35 -07:00
dsl_scan.c Fix gcc missing braces warnings 2010-08-27 15:34:03 -07:00
dsl_synctask.c Fix gcc missing parenthesis warnings 2010-08-31 08:38:35 -07:00
fm.c Update to onnv_147 2010-08-26 14:24:34 -07:00
gzip.c Fix gcc ident pragma warnings 2010-08-27 15:34:02 -07:00
lzjb.c Fix gcc uninitialized variable warnings 2010-08-31 08:38:43 -07:00
metaslab.c Fix gcc c90 compliance warnings 2010-08-27 15:28:32 -07:00
refcount.c Fix gcc uninitialized variable warnings 2010-08-31 08:38:43 -07:00
rrwlock.c Rebase master to b121 2009-08-18 11:43:27 -07:00
sa.c Fix gcc uninitialized variable warnings 2010-08-31 08:38:43 -07:00
sha256.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
spa_boot.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
spa_config.c Update to onnv_147 2010-08-26 14:24:34 -07:00
spa_errlog.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
spa_history.c Fix gcc invalid prototype warnings 2010-08-27 15:34:03 -07:00
spa_misc.c Fix gcc uninitialized variable warnings 2010-08-31 08:38:43 -07:00
spa.c Fix gcc uninitialized variable warnings 2010-08-31 08:38:43 -07:00
space_map.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
txg.c Fix commit callbacks 2010-08-31 08:38:44 -07:00
uberblock.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
unique.c Fix gcc ident pragma warnings 2010-08-27 15:34:02 -07:00
vdev_cache.c Fix gcc unused variable warnings 2010-08-31 08:38:43 -07:00
vdev_file.c Fix gcc uninitialized variable warnings 2010-08-31 08:38:43 -07:00
vdev_label.c Fix gcc uninitialized variable warnings 2010-08-31 08:38:43 -07:00
vdev_mirror.c Fix gcc c90 compliance warnings 2010-08-27 15:28:32 -07:00
vdev_missing.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
vdev_queue.c Fix gcc c90 compliance warnings 2010-08-27 15:28:32 -07:00
vdev_raidz.c Fix gcc uninitialized variable warnings 2010-08-31 08:38:43 -07:00
vdev_root.c Fix gcc c90 compliance warnings 2010-08-27 15:28:32 -07:00
vdev.c Fix gcc unused variable warnings 2010-08-31 08:38:43 -07:00
zap_leaf.c Fix gcc uninitialized variable warnings 2010-08-31 08:38:43 -07:00
zap_micro.c Fix gcc unused variable warnings 2010-08-31 08:38:43 -07:00
zap.c Fix gcc cast warnings 2010-08-27 15:33:32 -07:00
zfs_acl.c Update to onnv_147 2010-08-26 14:24:34 -07:00
zfs_byteswap.c Fix gcc uninitialized variable warnings 2010-08-31 08:38:43 -07:00
zfs_ctldir.c Update to onnv_147 2010-08-26 14:24:34 -07:00
zfs_debug.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
zfs_dir.c Update to onnv_147 2010-08-26 14:24:34 -07:00
zfs_fm.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
zfs_fuid.c Fix gcc missing parenthesis warnings 2010-08-31 08:38:35 -07:00
zfs_ioctl.c Fix gcc missing parenthesis warnings 2010-08-31 08:38:35 -07:00
zfs_log.c Update to onnv_147 2010-08-26 14:24:34 -07:00
zfs_onexit.c Update to onnv_147 2010-08-26 14:24:34 -07:00
zfs_replay.c Update to onnv_147 2010-08-26 14:24:34 -07:00
zfs_rlock.c Fix gcc uninitialized variable warnings 2010-08-31 08:38:43 -07:00
zfs_sa.c Update to onnv_147 2010-08-26 14:24:34 -07:00
zfs_vfsops.c Update to onnv_147 2010-08-26 14:24:34 -07:00
zfs_vnops.c Update to onnv_147 2010-08-26 14:24:34 -07:00
zfs_znode.c Fix gcc c90 compliance warnings 2010-08-27 15:28:32 -07:00
zil.c Fix gcc uninitialized variable warnings 2010-08-31 08:38:43 -07:00
zio_checksum.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
zio_compress.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
zio_inject.c Update to onnv_147 2010-08-26 14:24:34 -07:00
zio.c Fix gcc unused variable warnings 2010-08-31 08:38:43 -07:00
zle.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
zrlock.c Fix gcc c90 compliance warnings 2010-08-27 15:28:32 -07:00