zfs/module/zfs
Ned Bass 410d8c4e15 Reduce dsl_scan_visitbp stack usage by moving blkptr_t to heap
Github issue 22 reported a stack overrun when the zfs module was
loaded, possibly related to the presence of existing zpools created
under zfs-fuse.  The stack trace showed 9 levels of recursion between
dsl_scan_visitbp() and dsl_scan_recurse(). To reduce stack overhead in
that code path, this commit moves the 128 byte blkptr_t data strucutre
in dsl_scan_visitbp() to the heap.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
2010-08-02 14:09:15 -07:00
..
include/sys Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
arc.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
bplist.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
bpobj.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
dbuf.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
ddt.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
ddt_zap.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
dmu.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
dmu_object.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
dmu_objset.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
dmu_send.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
dmu_traverse.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
dmu_tx.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
dmu_zfetch.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
dnode.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
dnode_sync.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
dsl_dataset.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -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 Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
dsl_dir.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
dsl_pool.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
dsl_prop.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
dsl_scan.c Reduce dsl_scan_visitbp stack usage by moving blkptr_t to heap 2010-08-02 14:09:15 -07:00
dsl_synctask.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
fm.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
gzip.c Move the world out of /zfs/ and seperate out module build tree 2008-12-11 11:08:09 -08:00
lzjb.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
metaslab.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
refcount.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
rrwlock.c Rebase master to b121 2009-08-18 11:43:27 -07:00
sa.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
sha256.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
spa.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 core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -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 Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
spa_misc.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -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 Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
uberblock.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
unique.c Move the world out of /zfs/ and seperate out module build tree 2008-12-11 11:08:09 -08:00
vdev.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
vdev_cache.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
vdev_file.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
vdev_label.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
vdev_mirror.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -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 Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
vdev_raidz.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
vdev_root.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
zap.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
zap_leaf.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
zap_micro.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
zfs_acl.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
zfs_byteswap.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
zfs_ctldir.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -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 core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -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 Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
zfs_ioctl.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
zfs_log.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
zfs_replay.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
zfs_rlock.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
zfs_sa.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
zfs_vfsops.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
zfs_vnops.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
zfs_znode.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
zil.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
zio.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -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 core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
zle.c Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00