]> git.proxmox.com Git - mirror_spl.git/commit
Support post-3.13 kthread_create() semantics.
authorTim Chase <tim@chase2k.com>
Wed, 26 Mar 2014 13:29:24 +0000 (08:29 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 8 Apr 2014 19:44:42 +0000 (12:44 -0700)
commit17a527cb0f44cef6582583e502621541061d8817
tree5619e8f29e0272ef6206ffa788061bdccc47d971
parente19101e08f25708b03e5ff98a4da5756cfd709f7
Support post-3.13 kthread_create() semantics.

Provide spl_kthread_create() as a wrapper to the kernel's kthread_create()
to provide pre-3.13 semantics.  Re-try if the call is interrupted or if it
would have returned -ENOMEM.  Otherwise return NULL.

Signed-off-by: Chunwei Chen <tuxoko@gmail.com>
Signed-off-by: Tim Chase <tim@chase2k.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #339
include/sys/thread.h
module/spl/spl-debug.c
module/spl/spl-taskq.c
module/spl/spl-thread.c
module/splat/splat-condvar.c
module/splat/splat-rwlock.c