]> git.proxmox.com Git - mirror_spl.git/commit
Update the thread shim to use the current kernel threading API.
authorbehlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c>
Fri, 4 Apr 2008 04:44:16 +0000 (04:44 +0000)
committerbehlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c>
Fri, 4 Apr 2008 04:44:16 +0000 (04:44 +0000)
commit968eccd1d1cb7a43a7f05050d7b645da79966e6d
treec25ed40d99951a378924d7b8216afe20756f95ed
parent996faa68697ec79f37e44999b901f07d6c8f94a2
Update the thread shim to use the current kernel threading API.
We need to use kthread_create() here for a few reasons.  First
off to old kernel_thread() API functioin will be going away.
Secondly, and more importantly if I use kthread_create() we can
then properly implement a thread_exit() function which terminates
the kernel thread at any point with do_exit().  This fixes our
cleanup bug which was caused by dropping a mutex twice after
thread_exit() didn't really exit.

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@66 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
include/sys/thread.h
modules/spl/spl-thread.c