diff options
| author | Marcel Moolenaar <marcel@FreeBSD.org> | 2011-04-30 05:28:54 +0000 |
|---|---|---|
| committer | Marcel Moolenaar <marcel@FreeBSD.org> | 2011-04-30 05:28:54 +0000 |
| commit | 5f714f4ee485c6c335de74522baa965602ecd1de (patch) | |
| tree | 14d807fa21a4180f175b35c361e7b4ee2be68d23 | |
| parent | 34d33c76542be55ecfd59d31a8d1fe23b98562ee (diff) | |
Notes
| -rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/txg.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/txg.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/txg.c index f3f430d6df5a..188d58f4ee37 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/txg.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/txg.c @@ -129,6 +129,7 @@ void txg_sync_start(dsl_pool_t *dp) { tx_state_t *tx = &dp->dp_tx; + size_t stksize = 0; mutex_enter(&tx->tx_sync_lock); @@ -146,7 +147,10 @@ txg_sync_start(dsl_pool_t *dp) * 32-bit x86. This is due in part to nested pools and * scrub_visitbp() recursion. */ - tx->tx_sync_thread = thread_create(NULL, 16<<10, txg_sync_thread, +#ifdef __i386__ + stksize = 16 << 10; +#endif + tx->tx_sync_thread = thread_create(NULL, stksize, txg_sync_thread, dp, 0, &p0, TS_RUN, minclsyspri); mutex_exit(&tx->tx_sync_lock); |
