]> git.proxmox.com Git - mirror_zfs.git/blobdiff - module/zfs/txg.c
Simplify threads, mutexs, cvs and rwlocks
[mirror_zfs.git] / module / zfs / txg.c
index 65bd7f93acdf316fa462ac26bd47ff212fad06c4..8b1ec9c05808b4a44820cffb03db6c760982ac35 100644 (file)
  * now transition to the syncing state.
  */
 
-static void txg_sync_thread(dsl_pool_t *dp);
-static void txg_quiesce_thread(dsl_pool_t *dp);
+static void txg_sync_thread(void *dp);
+static void txg_quiesce_thread(void *dp);
 
 int zfs_txg_timeout = 5;       /* max seconds worth of delta per txg */
 
@@ -477,8 +477,9 @@ txg_wait_callbacks(dsl_pool_t *dp)
 }
 
 static void
-txg_sync_thread(dsl_pool_t *dp)
+txg_sync_thread(void *arg)
 {
+       dsl_pool_t *dp = (dsl_pool_t *)arg;
        spa_t *spa = dp->dp_spa;
        tx_state_t *tx = &dp->dp_tx;
        callb_cpr_t cpr;
@@ -561,8 +562,9 @@ txg_sync_thread(dsl_pool_t *dp)
 }
 
 static void
-txg_quiesce_thread(dsl_pool_t *dp)
+txg_quiesce_thread(void *arg)
 {
+       dsl_pool_t *dp = (dsl_pool_t *)arg;
        tx_state_t *tx = &dp->dp_tx;
        callb_cpr_t cpr;