Commit Graph

1208 Commits

Author SHA1 Message Date
Brian Behlendorf 256505afb0 Merge branch 'fix-stack-dsl_deleg_get' into refs/top-bases/fix-branch 2010-06-16 13:49:55 -07:00
Brian Behlendorf 869764f64d Add fix-stack-dsl_deleg_get topic branch
Reduce stack usage in dsl_deleg_get, gcc flagged it as consuming a
whopping 1040 bytes or potentially 1/4 of a 4K stack.  This patch
moves all the large structures and buffer off the stack and on to
the heap.  This includes 2 zap_cursor_t structs each 52 bytes in
size, 2 zap_attribute_t structs each 280 bytes in size, and 1
256 byte char array.  The total saves on the stack is 880 bytes
after you account for the 5 new pointers added.

Also the source buffer length has been increased from MAXNAMELEN
to MAXNAMELEN+strlen(MOS_DIR_NAME)+1 as described by the comment in
dsl_dir_name().  A buffer overrun may have been possible with the
slightly smaller buffer.
2010-06-16 13:49:25 -07:00
Brian Behlendorf 31cc6992c5 Merge branch 'fix-stack-dsl_dir_open_spa' into refs/top-bases/fix-branch 2010-06-16 12:40:39 -07:00
Brian Behlendorf 0c524122bd Add fix-stack-dsl_dir_open_spa topic branch
Reduce stack usage by 256 bytes by moving buf char array from
the stack to the heap.
2010-06-16 12:39:44 -07:00
Brian Behlendorf 2f30cc0188 Merge branch 'fix-stack-lzjb' into refs/top-bases/fix-branch 2010-06-14 16:45:33 -07:00
Brian Behlendorf b8cc785fb6 Add fix-stack-lzjb topic branch
Reduce kernel stack usage by lzjb_compress() by moving uint16 array
off the stack and on to the heap.  The exact performance implications
of this I have not measured but we absolutely need to keep stack
usage to a minimum.  If/when this becomes and issue we optimize.
2010-06-14 16:45:01 -07:00
Brian Behlendorf 51322821f3 Merge branch 'fix-kstat-xuio' into refs/top-bases/fix-branch 2010-06-14 16:43:32 -07:00
Brian Behlendorf f61a7ce9e1 Add fix-kstat-xuio topic branch
Move xiou stat structures from a header to the dmu.c source as is
done with all the other kstat interfaces.  This information is local
to dmu.c registered the xuio kstat and should stay that way.
2010-06-14 16:43:01 -07:00
Brian Behlendorf 963518b20f Merge branch 'fix-metaslab' into refs/top-bases/fix-branch 2010-06-14 16:40:45 -07:00
Brian Behlendorf f3a61f709d Add fix-metaslab topic branch
If your only going to allow one allocator to be used and it is defined
at compile time there is no point including the others in the build.
This patch could/should be refined for Linux to make the metaslab
configurable at run time.  That might be a bit tricky however since
you would need to quiese all IO.  Short of that making it configurable
as a module load option would be a reasonable compromise.
2010-06-14 16:40:26 -07:00
Brian Behlendorf f3f44cbd31 Merge branch 'fix-current' into refs/top-bases/fix-branch 2010-06-14 16:39:27 -07:00
Brian Behlendorf 6cf7f7c9df Add fix-current topic branch
In the linux kernel 'current' is defined to mean the current process
and can never be used as a local variable in a function.  Simply
replace all usage of 'current' with 'curr' in this function.
2010-06-14 16:38:56 -07:00
Brian Behlendorf 2969945552 Merge branch 'fix-pthreads' into refs/top-bases/fix-branch 2010-06-14 16:22:00 -07:00
Brian Behlendorf bce1904fbb Merge branch 'fix-taskq' into refs/top-bases/fix-branch 2010-06-14 16:21:59 -07:00
Brian Behlendorf f9f342c5f2 Add fix-pthreads topic branch
This is a portability change which removes the dependence of the Solaris
thread library.  All locations where Solaris thread API was used before
have been replaced with equivilant Solaris kernel style thread calls.
In user space the kernel style threading API is implemented in term of
the portable pthreads library.  This includes all threads, mutexs,
condition variables, reader/writer locks, and taskqs.
2010-06-14 16:20:44 -07:00
Brian Behlendorf 49ad53c46f Update fix-taskq to never sleep at interrupt time
Updated fix to detect if we are in an interrupt and only sleep if it
is safe to do some.  I guess it must be safe to sleep under Solaris
this must be handled in a sort interrupt handler there
2010-06-14 16:14:23 -07:00
Brian Behlendorf 2d4cd584e7 Merge branch 'fix-error-handling' into refs/top-bases/fix-branch 2010-05-28 13:54:54 -07:00
Brian Behlendorf b80e7c8069 Merge commit 'refs/top-bases/fix-error-handling' into fix-error-handling 2010-05-28 13:54:54 -07:00
Brian Behlendorf f6df7f8782 Merge branch 'fix-acl' into refs/top-bases/fix-branch 2010-05-28 13:54:53 -07:00
Brian Behlendorf 683c459a72 Merge branch 'fix-deadcode' into refs/top-bases/fix-branch 2010-05-28 13:54:53 -07:00
Brian Behlendorf 877bb02a78 Merge commit 'refs/top-bases/fix-acl' into fix-acl 2010-05-28 13:54:53 -07:00
Brian Behlendorf 0f28de26db Merge branch 'fix-strncat' into refs/top-bases/fix-branch 2010-05-28 13:54:52 -07:00
Brian Behlendorf 2b40ca1456 Merge commit 'refs/top-bases/fix-deadcode' into fix-deadcode 2010-05-28 13:54:52 -07:00
Brian Behlendorf 6c1f1ca76b Merge commit 'refs/top-bases/fix-strncat' into fix-strncat
Conflicts:
	lib/libzfs/libzfs_sendrecv.c
2010-05-28 13:54:49 -07:00
Brian Behlendorf 0c7850b688 Merge branch 'fix-list' into refs/top-bases/fix-branch 2010-05-28 13:54:13 -07:00
Brian Behlendorf 2c67a5a29d Merge commit 'refs/top-bases/fix-taskq' into fix-taskq 2010-05-28 13:54:12 -07:00
Brian Behlendorf c53061c5af Merge branch 'fix-taskq' into refs/top-bases/fix-branch 2010-05-28 13:54:12 -07:00
Brian Behlendorf 016808b9e9 Merge commit 'refs/top-bases/fix-list' into fix-list 2010-05-28 13:54:12 -07:00
Brian Behlendorf 4bcccd352e Merge branch 'fix-stack' into refs/top-bases/fix-branch 2010-05-28 13:54:11 -07:00
Brian Behlendorf 89089d1e4b Merge commit 'refs/top-bases/fix-stack' into fix-stack
Conflicts:
	module/zfs/dmu_objset.c
	module/zfs/spa_history.c
2010-05-28 13:54:08 -07:00
Brian Behlendorf be688941e5 Merge branch 'fix-rwlocks' into refs/top-bases/fix-branch 2010-05-28 13:52:55 -07:00
Brian Behlendorf 0d4d1a7861 Merge commit 'refs/top-bases/fix-rwlocks' into fix-rwlocks
Conflicts:
	module/zfs/dsl_dataset.c
2010-05-28 13:52:52 -07:00
Brian Behlendorf 0c6ebd6b14 Merge branch 'fix-no-zmod' into refs/top-bases/fix-branch 2010-05-28 13:52:29 -07:00
Brian Behlendorf 39f5f90c1a Merge commit 'refs/top-bases/fix-no-zmod' into fix-no-zmod 2010-05-28 13:52:29 -07:00
Brian Behlendorf 0a7f819adf Merge branch 'fix-newlines' into refs/top-bases/fix-branch 2010-05-28 13:52:28 -07:00
Brian Behlendorf 141b42bae9 Merge branch 'fix-evict-dbufs' into refs/top-bases/fix-branch 2010-05-28 13:52:28 -07:00
Brian Behlendorf 24fc842bea Merge commit 'refs/top-bases/fix-newlines' into fix-newlines 2010-05-28 13:52:28 -07:00
Brian Behlendorf 64420d9573 Merge branch 'fix-dnode-cons' into refs/top-bases/fix-branch 2010-05-28 13:52:27 -07:00
Brian Behlendorf d9e977d23b Merge commit 'refs/top-bases/fix-evict-dbufs' into fix-evict-dbufs 2010-05-28 13:52:27 -07:00
Brian Behlendorf 1a55aa78e7 Merge commit 'refs/top-bases/fix-dnode-cons' into fix-dnode-cons
Conflicts:
	module/zfs/dnode.c
2010-05-28 13:52:23 -07:00
Brian Behlendorf 31630287ca Merge branch 'fix-dbuf_dirty_record_t' into refs/top-bases/fix-branch
Conflicts:
	lib/libzfs/libzfs_sendrecv.c
	module/zfs/dmu_objset.c
	module/zfs/dnode.c
	module/zfs/dsl_dataset.c
	module/zfs/spa_history.c
2010-05-28 13:51:29 -07:00
Brian Behlendorf ab1a68b225 Merge commit 'refs/top-bases/fix-dbuf_dirty_record_t' into fix-dbuf_dirty_record_t
Conflicts:
	module/zfs/dnode_sync.c
2010-05-28 13:46:45 -07:00
Brian Behlendorf 428870ff73 Update core ZFS code from build 121 to build 141. 2010-05-28 13:45:14 -07:00
Brian Behlendorf fcfae8fbee Merge branch 'fix-get-configs' into refs/top-bases/fix-branch 2010-05-28 12:20:30 -07:00
Brian Behlendorf c37d6443a4 Revert fix-get-configs should no longer be needed 2010-05-28 12:18:45 -07:00
Brian Behlendorf 157df8338c Merge branch 'fix-dsl_pool_t' into refs/top-bases/fix-branch 2010-05-28 10:14:42 -07:00
Brian Behlendorf 9eec97e163 Revert fix-dsl_pool_t fixed upstream 2010-05-28 10:08:02 -07:00
Brian Behlendorf 396fb1e235 Merge branch 'fix-taskq' into refs/top-bases/fix-branch 2010-05-28 10:00:43 -07:00
Brian Behlendorf 11a9bfc7f8 Revert fix-taskq changes reevaluate after update. 2010-05-28 09:54:03 -07:00
Brian Behlendorf 146ded4db2 Merge branch 'fix-clock-wrap' into refs/top-bases/fix-branch 2010-05-27 17:02:13 -07:00