]> git.proxmox.com Git - mirror_zfs.git/commit - tests/runfiles/linux.run
Fix zdb -e and zhack thread_init()
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 17 Mar 2016 22:32:33 +0000 (15:32 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 21 Mar 2016 17:20:02 +0000 (10:20 -0700)
commit505d9655c9e759a145b4812c654c51c34dbe3425
tree7ad9dfd11ce94dd597a72b61c6d1563e55f6208b
parentfc0c72b1670156622af26562030e84bd56d4cdfb
Fix zdb -e and zhack thread_init()

This issue was caused by calling `thread_init()` and `thread_fini()`
multiple times resulting in `kthread_key` being invalid.  To resolve
the issue the explicit calls to `thread_init()` and `thread_fini()`
required by the `zpool` command have been moved in to the command.
Consumers such as `zdb` and `zhack` perform the same initialized
through `kernel_init()` and `kernel_fini()`.

Resolving this issue allows multiple additional test cases to
be enabled.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Signed-off-by: Chunwei Chen <tuxoko@gmail.com>
Signed-off-by: Tim Chase <tim@chase2k.com>
Closes #4331
cmd/zpool/zpool_main.c
lib/libzfs/libzfs_import.c
tests/runfiles/linux.run