Deleted Added
sdiff udiff text old ( 251631 ) new ( 251636 )
full compact
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 74 unchanged lines hidden (view full) ---

83/* Check hostid on import? */
84static int check_hostid = 1;
85
86SYSCTL_DECL(_vfs_zfs);
87TUNABLE_INT("vfs.zfs.check_hostid", &check_hostid);
88SYSCTL_INT(_vfs_zfs, OID_AUTO, check_hostid, CTLFLAG_RW, &check_hostid, 0,
89 "Check hostid on import?");
90
91typedef enum zti_modes {
92 zti_mode_fixed, /* value is # of threads (min 1) */
93 zti_mode_online_percent, /* value is % of online CPUs */
94 zti_mode_batch, /* cpu-intensive; value is ignored */
95 zti_mode_null, /* don't create a taskq */
96 zti_nmodes
97} zti_modes_t;
98

--- 5748 unchanged lines hidden (view full) ---

5847spa_async_resume(spa_t *spa)
5848{
5849 mutex_enter(&spa->spa_async_lock);
5850 ASSERT(spa->spa_async_suspended != 0);
5851 spa->spa_async_suspended--;
5852 mutex_exit(&spa->spa_async_lock);
5853}
5854
5855static void
5856spa_async_dispatch(spa_t *spa)
5857{
5858 mutex_enter(&spa->spa_async_lock);
5859 if (spa->spa_async_tasks && !spa->spa_async_suspended &&
5860 spa->spa_async_thread == NULL &&
5861 rootdir != NULL && !vn_is_readonly(rootdir))
5862 spa->spa_async_thread = thread_create(NULL, 0,
5863 spa_async_thread, spa, 0, &p0, TS_RUN, maxclsyspri);
5864 mutex_exit(&spa->spa_async_lock);
5865}
5866
5867void
5868spa_async_request(spa_t *spa, int task)
5869{

--- 804 unchanged lines hidden ---