Commit Graph

3233 Commits

Author SHA1 Message Date
Ricardo M. Correia c0ce3b40f2 Reimplement user kthreads based on pthread thread specific data.
This resolves previous scalabily concerns about the cost of calling
curthread which previously required a list walk.  The kthread address
is now tracked as thread specific data which can be quickly returned.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
2009-08-04 13:55:15 -07:00
Brian Behlendorf 22f4ee3398 Merge commit 'refs/top-bases/linux-have-uio-rw' into linux-have-uio-rw 2009-08-03 16:30:21 -07:00
Brian Behlendorf b8e8d02bf9 Merge commit 'refs/top-bases/linux-debug-zerocopy' into linux-debug-zerocopy 2009-08-03 16:30:20 -07:00
Brian Behlendorf 102ab49042 Merge commit 'refs/top-bases/linux-kernel-module' into linux-kernel-module 2009-08-03 16:30:03 -07:00
Brian Behlendorf 48cbfae8bd Merge commit 'refs/top-bases/zfs-branch' into zfs-branch 2009-08-03 16:28:49 -07:00
Brian Behlendorf f2f52087f3 Merge branch 'gcc-branch' into refs/top-bases/zfs-branch 2009-08-03 16:28:48 -07:00
Brian Behlendorf 7a8bfe1597 Merge commit 'refs/top-bases/gcc-branch' into gcc-branch 2009-08-03 16:28:47 -07:00
Brian Behlendorf 6cb98ae6b9 Merge branch 'gcc-unused' into refs/top-bases/gcc-branch 2009-08-03 16:28:46 -07:00
Brian Behlendorf 68a80a8b87 refcount_add() mistakenly moved to ASSERT() breaks --disable-debug builds. 2009-08-03 16:20:27 -07:00
Brian Behlendorf c7271f9a3a Merge commit 'refs/top-bases/linux-have-uio-rw' into linux-have-uio-rw 2009-07-31 14:04:35 -07:00
Brian Behlendorf 5b43d8c4ea Merge commit 'refs/top-bases/linux-debug-zerocopy' into linux-debug-zerocopy 2009-07-31 14:04:34 -07:00
Brian Behlendorf 8539aeef21 Merge commit 'refs/top-bases/linux-kernel-module' into linux-kernel-module 2009-07-31 14:04:15 -07:00
Brian Behlendorf 9f5e45ef4d Merge commit 'refs/top-bases/zfs-branch' into zfs-branch 2009-07-31 14:02:49 -07:00
Brian Behlendorf cf44f97b96 Merge branch 'gcc-branch' into refs/top-bases/zfs-branch 2009-07-31 14:02:48 -07:00
Brian Behlendorf af8e850408 Merge commit 'refs/top-bases/gcc-branch' into gcc-branch 2009-07-31 14:02:47 -07:00
Brian Behlendorf 252846a145 Merge branch 'gcc-shadow' into refs/top-bases/gcc-branch 2009-07-31 14:02:46 -07:00
Brian Behlendorf cfd9e9936f Fix an accidentally introduced formatting issue in zfs output.
Because the local 'index' variable shadows the index() function
it was replaced by 'i'.  Unfortunately when I made this change
I accidentally replaced one instance with 'j' resulting in the
short decimal values being printed incorrectly.
2009-07-31 13:50:21 -07:00
Brian Behlendorf 833c4d1d74 Merge commit 'refs/top-bases/linux-have-uio-rw' into linux-have-uio-rw 2009-07-29 21:29:16 -07:00
Brian Behlendorf db9f4d423b Merge commit 'refs/top-bases/linux-debug-zerocopy' into linux-debug-zerocopy 2009-07-29 21:29:15 -07:00
Brian Behlendorf 4f6e1daa09 Merge commit 'refs/top-bases/linux-kernel-module' into linux-kernel-module 2009-07-29 21:28:53 -07:00
Brian Behlendorf 2d86fb2788 Merge commit 'refs/top-bases/zfs-branch' into zfs-branch 2009-07-29 21:27:13 -07:00
Brian Behlendorf 3185bb677e Merge branch 'fix-branch' into refs/top-bases/zfs-branch 2009-07-29 21:27:12 -07:00
Brian Behlendorf 83136344ea Merge commit 'refs/top-bases/fix-branch' into fix-branch 2009-07-29 21:27:11 -07:00
Brian Behlendorf 653cd5153a Merge branch 'fix-stack' into refs/top-bases/fix-branch 2009-07-29 21:27:10 -07:00
Brian Behlendorf e2bbeb5e61 Merge branch 'gcc-branch' into refs/top-bases/zfs-branch 2009-07-29 21:27:06 -07:00
Brian Behlendorf 5809ed62dd Merge commit 'refs/top-bases/gcc-branch' into gcc-branch 2009-07-29 21:27:05 -07:00
Brian Behlendorf f80c505f4d Merge branch 'gcc-uninit' into refs/top-bases/gcc-branch 2009-07-29 21:27:04 -07:00
Brian Behlendorf ee435f260c Excessively large stack frames detected.
The 2.6.30 kernel build systems sets -Wframe-larger-than=2048 which causes
a warning to be generated when an individual stack frame exceeds 2048.
This caught the spa_history_log() and dmu_objset_snapshot() functions
which declared a data structure on the stack which contained a char
array of MAXPATHLEN.  This in defined to be 4096 in the linux kernel
and I imagine it is quite large under Solaris as well.  Regardless, the
offending data structures were moved to the heap to correctly keep the
stack depth to a minimum.  We might consider setting this value even
lower to catch additional offenders because we are expecting deep stacks.
2009-07-29 21:18:48 -07:00
Brian Behlendorf 72d2035ed3 Updated gcc in fc11 flagged a new uninitialized variable. 2009-07-29 21:17:47 -07:00
Brian Behlendorf 642da38081 Merge commit 'refs/top-bases/linux-have-uio-rw' into linux-have-uio-rw 2009-07-29 17:51:09 -07:00
Brian Behlendorf 563526307c Merge commit 'refs/top-bases/linux-debug-zerocopy' into linux-debug-zerocopy 2009-07-29 17:51:07 -07:00
Brian Behlendorf e50caae469 Merge commit 'refs/top-bases/linux-kernel-module' into linux-kernel-module 2009-07-29 17:50:49 -07:00
Brian Behlendorf 9cabcac115 Required autoconf support for vdev_disk integration with 2.6.30 kernels.
2.6.22 API change
Unused destroy_dirty_buffers arg removed from prototype.

2.6.24 API change
Empty write barriers are now supported and we should use them.

2.6.24 API change
Size argument dropped from bio_endio and bi_end_io, because the
bi_end_io is only called once now when the request is complete.
There is no longer any need for a size argument.  This also means
that partial IO's are no longer possibe and the end_io callback
should not check bi->bi_size.  Finally, the return type was updated
to void.

2.6.28 API change
open/close_bdev_excl() renamed to open/close_bdev_exclusive().

2.6.29 API change
BIO_RW_SYNC renamed to BIO_RW_SYNCIO.
2009-07-29 17:14:23 -07:00
Brian Behlendorf a9b7469efc Merge commit 'refs/top-bases/linux-have-uio-rw' into linux-have-uio-rw 2009-07-27 10:49:17 -07:00
Brian Behlendorf 0058e1070d Merge commit 'refs/top-bases/linux-debug-zerocopy' into linux-debug-zerocopy 2009-07-27 10:49:15 -07:00
Brian Behlendorf 69f433a07f Merge commit 'refs/top-bases/linux-kernel-module' into linux-kernel-module 2009-07-27 10:48:58 -07:00
Brian Behlendorf 3a431c68c2 Remove LINUXINCLUDE from autoconf wrapper, breaks 2.6.28+ kernels.
Modern kernel build systems at least post 2.6.16 will set this properly
so we should not.  In fact post 2.6.28 the include headers have moved
under arch so the guess we make here is completely wrong.  Letting
the kernel build system set this ensure it will be correct.  Also
drop the ulimit from the Makefile which, not surprisingly, turns out
to be very non-portable.  If your expecting failures set the ulimit
in your shell before kicking off the test suite.
2009-07-27 10:39:28 -07:00
Brian Behlendorf d157e88600 Merge commit 'refs/top-bases/linux-have-uio-rw' into linux-have-uio-rw 2009-07-24 16:34:53 -07:00
Brian Behlendorf 6a636618e9 Merge commit 'refs/top-bases/linux-debug-zerocopy' into linux-debug-zerocopy 2009-07-24 16:34:52 -07:00
Brian Behlendorf a85294ea1a Merge commit 'refs/top-bases/linux-kernel-module' into linux-kernel-module 2009-07-24 16:34:37 -07:00
Brian Behlendorf 18ffe73d3f Check arch/default/ path when detecting kernel objects on SLES
We still preferentially use arch/arch looking for a native version
but if that fails it is acceptable to use default.
2009-07-24 16:26:17 -07:00
Brian Behlendorf cecd30f0a9 Merge commit 'refs/top-bases/linux-have-uio-rw' into linux-have-uio-rw 2009-07-24 16:02:40 -07:00
Brian Behlendorf 80f644c773 Merge commit 'refs/top-bases/linux-debug-zerocopy' into linux-debug-zerocopy 2009-07-24 16:02:39 -07:00
Brian Behlendorf d7ea56e24f Merge commit 'refs/top-bases/linux-kernel-module' into linux-kernel-module 2009-07-24 16:02:24 -07:00
Brian Behlendorf 5ecd180d91 ulimit is a function of the shell and should be invoked as such. 2009-07-24 15:50:57 -07:00
Brian Behlendorf 4d27030cca Merge commit 'refs/top-bases/linux-have-uio-rw' into linux-have-uio-rw 2009-07-24 11:14:42 -07:00
Brian Behlendorf 58accf61ab Merge commit 'refs/top-bases/linux-debug-zerocopy' into linux-debug-zerocopy 2009-07-24 11:14:41 -07:00
Brian Behlendorf 35cd8cd997 Merge commit 'refs/top-bases/linux-kernel-module' into linux-kernel-module 2009-07-24 11:14:23 -07:00
Brian Behlendorf db3967ba86 Merge commit 'refs/top-bases/zfs-branch' into zfs-branch 2009-07-24 11:08:43 -07:00
Brian Behlendorf 9a2275c1c5 Merge branch 'feature-branch' into refs/top-bases/zfs-branch 2009-07-24 11:08:42 -07:00