* TRUE if the current thread is the tx_sync_thread or if we * are being called from SPA context during pool initialization. */
| 825 | * are being called from SPA context during pool initialization. |
| 826 | */ |
| 827 | int |
| 828 | dsl_pool_sync_context(dsl_pool_t *dp) |
| 829 | { |
| 830 | return (curthread == dp->dp_tx.tx_sync_thread || |
| 831 | spa_is_initializing(dp->dp_spa) || |
| 832 | taskq_member(dp->dp_sync_taskq, curthread)); |
| 833 | } |
| 834 | |
| 835 | /* |
| 836 | * This function returns the amount of allocatable space in the pool |
no test coverage detected