Commit Graph

78 Commits

Author SHA1 Message Date
Brian Behlendorf e7334931f1 Merge commit 'refs/top-bases/fix-dnode-cons' into fix-dnode-cons 2009-08-18 12:09:21 -07:00
Brian Behlendorf 45d1cae3b8 Rebase master to b121 2009-08-18 11:43:27 -07:00
Brian Behlendorf 75b6de8e83 Merge commit 'refs/top-bases/fix-dnode-cons' into fix-dnode-cons 2009-07-06 13:12:39 -07:00
Brian Behlendorf 9babb37438 Rebase master to b117 2009-07-02 15:44:48 -07:00
Brian Behlendorf 60d25f4b93 The patch resolves the extra call to dnode_cons() in dnode_create().
The extra call to the constructor was there to reinitialize the non-
trivial primatives in the dnode (lists, mutexs, condvars, avl tree, etc).
This was safe, although not exactly clean, on Solaris because none of
the primitives allocate memory.  In the Linux port this is not true.
To keep stack usage to a minimum several of the primatives dynamically
allocate memory thus initializing them twice results in a memory leak.

This patch resolves this problem for Solaris and Linux by ensuring all
*_inits are called in the constructor, and all *_destroys are called
in the destructor.  Additionally we ensure that all dnode objects are
properly deconstructed before being freed to the slab, and when the
objects are allocated from the slab all required data members are
explicity initialized to correct values.
2009-03-19 15:22:48 -07:00
Brian Behlendorf 404fd8578f Merge commit 'refs/top-bases/fix-dnode-cons' into fix-dnode-cons 2009-02-18 14:28:27 -08:00
Brian Behlendorf d164b20935 Rebase master to b108 2009-02-18 12:51:31 -08:00
Brian Behlendorf 505d6b27db Merge commit 'refs/top-bases/fix-dnode-cons' into fix-dnode-cons 2009-01-26 22:00:58 -08:00
Brian Behlendorf c65e71073f Refresh type in topgit git://* reference 2009-01-26 21:58:32 -08:00
Brian Behlendorf ed101b6dde Merge commit 'refs/top-bases/fix-dnode-cons' into fix-dnode-cons 2009-01-20 15:46:09 -08:00
Brian Behlendorf 4710ede86a Add GIT to master 2009-01-20 15:43:44 -08:00
Brian Behlendorf 216ce72418 Merge commit 'refs/top-bases/fix-dnode-cons' into fix-dnode-cons 2009-01-15 14:13:46 -08:00
Brian Behlendorf fb5f0bc833 Rebase master to b105 2009-01-15 13:59:39 -08:00
Brian Behlendorf 1bee6d83ae Merge commit 'refs/top-bases/fix-dnode-cons' into fix-dnode-cons 2009-01-05 12:08:23 -08:00
Brian Behlendorf 42bcb36c89 Add unicode library 2009-01-05 12:03:23 -08:00
Brian Behlendorf ebe92f0de1 Merge commit 'refs/top-bases/fix-dnode-cons' into fix-dnode-cons 2009-01-05 11:11:38 -08:00
Brian Behlendorf 36b849fa51 Remove zdump, it's an unrelateds command which I added simply due to the z* command convention 2009-01-05 11:10:13 -08:00
Brian Behlendorf 62b40a0cc2 Merge commit 'refs/top-bases/fix-dnode-cons' into fix-dnode-cons 2008-12-12 13:46:39 -08:00
Brian Behlendorf 810db7e0a2 Remove zcommon reference merged in to zpool 2008-12-12 13:41:20 -08:00
Brian Behlendorf 6ea07baffa Merge commit 'refs/top-bases/fix-dnode-cons' into fix-dnode-cons 2008-12-11 15:40:28 -08:00
Brian Behlendorf 6b2c60acca Moving lib/libspl to linux-libspl branch 2008-12-11 15:38:59 -08:00
Brian Behlendorf 78b70a4471 Merge commit 'refs/top-bases/fix-dnode-cons' into fix-dnode-cons 2008-12-11 14:25:10 -08:00
Brian Behlendorf a4076c7544 Script updates 2008-12-11 14:21:14 -08:00
Brian Behlendorf c4911ece24 Move library files to lib 2008-12-11 14:16:55 -08:00
Brian Behlendorf fc3c415441 Merge commit 'refs/top-bases/fix-dnode-cons' into fix-dnode-cons 2008-12-11 11:26:02 -08:00
Brian Behlendorf b453b61272 Fix libspl move to the wrong place 2008-12-11 11:22:02 -08:00
Brian Behlendorf 4b7ee081ce Fix typo 2008-12-11 11:16:38 -08:00
Brian Behlendorf 77755a5771 Add a few missing files 2008-12-11 11:14:49 -08:00
Brian Behlendorf 172bb4bd5e Move the world out of /zfs/ and seperate out module build tree 2008-12-11 11:08:09 -08:00
Brian Behlendorf 968ea539bc Merge commit 'refs/top-bases/fix-dnode-cons' into fix-dnode-cons 2008-12-10 12:45:29 -08:00
Brian Behlendorf 9e8b1e836c Remove libumem, we will try and remove this dependency entirely. If we can't then the best move will simply be to use the official library, or build it as a convenience library 2008-12-10 12:43:20 -08:00
Brian Behlendorf f68f5df9f2 Merge commit 'refs/top-bases/fix-dnode-cons' into fix-dnode-cons 2008-12-09 14:16:19 -08:00
Brian Behlendorf 5e97ed8493 Move vmem* to libumem 2008-12-09 14:14:00 -08:00
Brian Behlendorf f32483a64b Merge commit 'refs/top-bases/fix-dnode-cons' into fix-dnode-cons 2008-12-09 13:40:20 -08:00
Brian Behlendorf 48343be6a3 Temporarily move taskq+util to libzpool until that directory is broken in to lib+module 2008-12-09 13:32:01 -08:00
Brian Behlendorf 25265086dd Merge commit 'refs/top-bases/fix-dnode-cons' into fix-dnode-cons 2008-12-08 16:46:08 -08:00
Brian Behlendorf 2f40ac4d9e Minor tweak to update script 2008-12-08 16:38:46 -08:00
Brian Behlendorf f6fae9da07 Merge commit 'refs/top-bases/fix-dnode-cons' into fix-dnode-cons 2008-12-08 16:24:54 -08:00
Brian Behlendorf 2b67f51fb6 Attempt move of kernel.c with topgit 2008-12-08 16:20:25 -08:00
Brian Behlendorf 9a5374658d Merge commit 'refs/top-bases/fix-dnode-cons' into fix-dnode-cons 2008-12-03 16:55:22 -08:00
Brian Behlendorf 96072c88e2 Add userspace zfs_context file 2008-12-03 15:43:56 -08:00
Brian Behlendorf 20e50e3a5e Merge commit 'refs/top-bases/fix-dnode-cons' into fix-dnode-cons 2008-12-03 12:50:02 -08:00
Brian Behlendorf b128c09fbe Rebase to OpenSolaris b103, in the process we are removing any code which did not originate from the OpenSolaris source. These changes will be reintroduced in topic branches for easier tracking 2008-12-03 12:09:06 -08:00
Brian Behlendorf 75898ec634 Merge commit 'refs/top-bases/fix-dnode-cons' into fix-dnode-cons 2008-12-02 08:52:15 -08:00
Brian Behlendorf b6097ae55a Remove stray stub kernel files which should be brought in my linux-kernel-module patch 2008-12-02 08:47:21 -08:00
Brian Behlendorf 761eedf029 Merge commit 'refs/top-bases/fix-dnode-cons' into fix-dnode-cons 2008-12-01 16:16:37 -08:00
Brian Behlendorf 7ebbc0c799 Finish removing all non-upstream bits from master 2008-12-01 16:15:29 -08:00
Brian Behlendorf f65b548331 Merge commit 'refs/top-bases/fix-dnode-cons' into fix-dnode-cons 2008-12-01 15:56:06 -08:00
Brian Behlendorf ef76e2f5ea Removed build system from master branch, will relocate to linux-zfs-branch 2008-12-01 15:41:33 -08:00
Brian Behlendorf 42baae9615 Removed build system from master branch, will relocate to linux-zfs-branch 2008-12-01 15:38:41 -08:00