Commit Graph

191 Commits

Author SHA1 Message Date
Brian Behlendorf 407a09cf3e Merge commit 'refs/top-bases/feature-branch' into feature-branch 2009-07-14 16:49:23 -07:00
Brian Behlendorf 8d55cf8c97 Merge branch 'feature-pthreads' into refs/top-bases/feature-branch 2009-07-14 16:49:22 -07:00
Brian Behlendorf a13cdecdd2 Remove debug printf 2009-07-14 16:35:13 -07:00
Brian Behlendorf 6923d172c5 Merge commit 'refs/top-bases/feature-branch' into feature-branch 2009-07-14 14:34:36 -07:00
Brian Behlendorf 605a501311 Merge branch 'feature-pthreads' into refs/top-bases/feature-branch 2009-07-14 14:34:35 -07:00
Brian Behlendorf 864e44e7e0 Provide correct kthread API semantics using pthreads.
The intent here is to fully remove the previous Solaris thread
implementation so we don't need to simulate both Solaris kernel
and user space thread APIs.  The few user space consumers of the
thread API have been updated to use the kthread API.  In order
to support this we needed to more fully support the kthread API
and that means not doing crazy things like casting a thread id
to a pointer and using that as was done before.  This first
implementation is not effecient but it does provide all the
corrent semantics.  If/when performance becomes and issue we
can and should just natively adopt pthreads which is portable.

Let me finish by saying I'm not proud of any of this and I would
love to see it improved.  However, this slow implementation does
at least provide all the correct kthread API semantics whereas
the previous method of casting the thread ID to a pointer was
dodgy at best.
2009-07-14 14:16:26 -07:00
Brian Behlendorf 151315f7cb Merge commit 'refs/top-bases/feature-branch' into feature-branch 2009-07-08 15:00:40 -07:00
Brian Behlendorf fa35bfd3cf Merge branch 'feature-pthreads' into refs/top-bases/feature-branch 2009-07-08 15:00:39 -07:00
Brian Behlendorf 57ae3b59e9 Merge commit 'refs/top-bases/feature-pthreads' into feature-pthreads 2009-07-08 15:00:39 -07:00
Brian Behlendorf 2caba8e240 Add new DMU_READ_PREFETCH flag to dmu_read(). 2009-07-08 14:51:55 -07:00
Brian Behlendorf 1ab1b8502b Stop the kthread/thread/pthread mixing and matching insanity. Update all
code to only use the kthread API regardless of if it is compiled in the
kernel or user space.  The kthread API will be layered on top of pthreads
as best as possible in zfs_context, this is non optimal but much clearer.
2009-07-08 14:47:23 -07:00
Brian Behlendorf 4272b9e492 Merge commit 'refs/top-bases/feature-branch' into feature-branch 2009-07-06 15:38:49 -07:00
Brian Behlendorf 1f5a1d932e Merge branch 'feature-pthreads' into refs/top-bases/feature-branch 2009-07-06 15:38:48 -07:00
Brian Behlendorf 3a8e684d73 Additional lock calls were added to ztest and they must be updated
to use the pthread's API in favour of Solaris threads.
2009-07-06 15:31:54 -07:00
Brian Behlendorf 8d4f19348a Merge commit 'refs/top-bases/feature-branch' into feature-branch 2009-07-06 13:16:34 -07:00
Brian Behlendorf 2838dba2c4 Merge branch 'feature-pthreads' into refs/top-bases/feature-branch 2009-07-06 13:16:32 -07:00
Brian Behlendorf cd098f87c8 Merge commit 'refs/top-bases/feature-pthreads' into feature-pthreads
Conflicts:

	cmd/ztest/ztest.c
2009-07-06 13:16:29 -07:00
Brian Behlendorf 8795d8f034 Merge commit 'refs/top-bases/feature-commit-cb' into feature-commit-cb 2009-07-06 13:15:43 -07:00
Brian Behlendorf 95ba24ed69 Merge branch 'feature-zap-cursor-to-key' into refs/top-bases/feature-branch
Conflicts:

	cmd/ztest/ztest.c
2009-07-06 13:15:35 -07:00
Brian Behlendorf d369760713 Merge commit 'refs/top-bases/feature-zap-cursor-to-key' into feature-zap-cursor-to-key 2009-07-06 13:14:41 -07:00
Brian Behlendorf 9babb37438 Rebase master to b117 2009-07-02 15:44:48 -07:00
Brian Behlendorf fe77fb7907 Merge commit 'refs/top-bases/feature-branch' into feature-branch 2009-03-20 09:29:17 -07:00
Brian Behlendorf 9476bd93ca Merge branch 'feature-pthreads' into refs/top-bases/feature-branch 2009-03-20 09:29:17 -07:00
Brian Behlendorf 13814fe220 Merge commit 'refs/top-bases/feature-pthreads' into feature-pthreads 2009-03-20 09:29:16 -07:00
Brian Behlendorf 99da5f93e8 Fix uninitialized variable error in ztest_dmu_commit_callbacks() 2009-03-20 09:20:49 -07:00
Brian Behlendorf a891a11671 Merge commit 'refs/top-bases/feature-branch' into feature-branch 2009-03-19 21:28:48 -07:00
Brian Behlendorf 6d883d7d40 Merge branch 'feature-pthreads' into refs/top-bases/feature-branch 2009-03-19 21:28:48 -07:00
Brian Behlendorf 63781842e3 Update mutex_lock to pthread_mutex_lock for zcl->zcl_callback_locks. 2009-03-19 21:21:35 -07:00
Brian Behlendorf 64684cadfa Merge commit 'refs/top-bases/feature-pthreads' into feature-pthreads 2009-03-19 21:19:28 -07:00
Brian Behlendorf fed604c844 Add extra () requested by gcc 2009-03-19 21:18:54 -07:00
Brian Behlendorf c89153393f Merge commit 'refs/top-bases/feature-branch' into feature-branch 2009-03-19 20:51:18 -07:00
Brian Behlendorf f180959bac Merge branch 'feature-pthreads' into refs/top-bases/feature-branch 2009-03-19 20:51:18 -07:00
Brian Behlendorf a32dc3b04b New TopGit dependency: feature-pthreads 2009-03-19 20:51:17 -07:00
Brian Behlendorf 54b5b41a58 Add 'feature-pthreads' branch to features branch. 2009-03-19 20:49:52 -07:00
Brian Behlendorf 29703a5b4e Add 'feature-commit-cb' branch for DMU commit callbacks. 2009-03-19 20:30:14 -07:00
Brian Behlendorf 20522feba0 Merge commit 'refs/top-bases/feature-branch' into feature-branch 2009-02-18 14:30:50 -08:00
Brian Behlendorf 73942e84b1 Merge branch 'feature-zap-cursor-to-key' into refs/top-bases/feature-branch 2009-02-18 14:30:49 -08:00
Brian Behlendorf 87307ab12a Merge commit 'refs/top-bases/feature-zap-cursor-to-key' into feature-zap-cursor-to-key 2009-02-18 14:30:48 -08:00
Brian Behlendorf d164b20935 Rebase master to b108 2009-02-18 12:51:31 -08:00
Brian Behlendorf 55d5d578e7 Merge commit 'refs/top-bases/feature-branch' into feature-branch 2009-01-26 22:01:15 -08:00
Brian Behlendorf 16ef710f59 Merge branch 'feature-zap-cursor-to-key' into refs/top-bases/feature-branch 2009-01-26 22:01:15 -08:00
Brian Behlendorf 3bac1c60c0 Merge commit 'refs/top-bases/feature-zap-cursor-to-key' into feature-zap-cursor-to-key 2009-01-26 22:01:15 -08:00
Brian Behlendorf c65e71073f Refresh type in topgit git://* reference 2009-01-26 21:58:32 -08:00
Brian Behlendorf e12f2e6b7b Merge commit 'refs/top-bases/feature-branch' into feature-branch 2009-01-20 15:46:27 -08:00
Brian Behlendorf 6425f28bca Merge branch 'feature-zap-cursor-to-key' into refs/top-bases/feature-branch 2009-01-20 15:46:26 -08:00
Brian Behlendorf 3c39b49269 Merge commit 'refs/top-bases/feature-zap-cursor-to-key' into feature-zap-cursor-to-key 2009-01-20 15:46:26 -08:00
Brian Behlendorf 4710ede86a Add GIT to master 2009-01-20 15:43:44 -08:00
Brian Behlendorf 1d35507203 Merge commit 'refs/top-bases/feature-branch' into feature-branch 2009-01-15 14:16:21 -08:00
Brian Behlendorf a6f5fb35f6 Merge branch 'feature-zap-cursor-to-key' into refs/top-bases/feature-branch 2009-01-15 14:16:20 -08:00
Brian Behlendorf 27cf20b0d6 Merge commit 'refs/top-bases/feature-zap-cursor-to-key' into feature-zap-cursor-to-key 2009-01-15 14:16:19 -08:00