mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-04-06 17:49:11 +03:00
Add linux spa thread support
Disable the spa thread under Linux until it can be implemented. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
This commit is contained in:
parent
9c905c550b
commit
7b89a54996
@ -677,7 +677,7 @@ spa_create_zio_taskqs(spa_t *spa)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef _KERNEL
|
#if defined(_KERNEL) && defined(HAVE_SPA_THREAD)
|
||||||
static void
|
static void
|
||||||
spa_thread(void *arg)
|
spa_thread(void *arg)
|
||||||
{
|
{
|
||||||
@ -767,6 +767,7 @@ spa_activate(spa_t *spa, int mode)
|
|||||||
ASSERT(spa->spa_proc == &p0);
|
ASSERT(spa->spa_proc == &p0);
|
||||||
spa->spa_did = 0;
|
spa->spa_did = 0;
|
||||||
|
|
||||||
|
#ifdef HAVE_SPA_THREAD
|
||||||
/* Only create a process if we're going to be around a while. */
|
/* Only create a process if we're going to be around a while. */
|
||||||
if (spa_create_process && strcmp(spa->spa_name, TRYIMPORT_NAME) != 0) {
|
if (spa_create_process && strcmp(spa->spa_name, TRYIMPORT_NAME) != 0) {
|
||||||
if (newproc(spa_thread, (caddr_t)spa, syscid, maxclsyspri,
|
if (newproc(spa_thread, (caddr_t)spa, syscid, maxclsyspri,
|
||||||
@ -787,6 +788,7 @@ spa_activate(spa_t *spa, int mode)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif /* HAVE_SPA_THREAD */
|
||||||
mutex_exit(&spa->spa_proc_lock);
|
mutex_exit(&spa->spa_proc_lock);
|
||||||
|
|
||||||
/* If we didn't create a process, we need to create our taskqs. */
|
/* If we didn't create a process, we need to create our taskqs. */
|
||||||
|
Loading…
Reference in New Issue
Block a user