> spa_t *spa = dp->dp_spa;
> tx_state_t *tx = &dp->dp_tx;
> callb_cpr_t cpr;
> uint64_t start, delta;
>
> - txg_thread_enter(tx, &cpr);
> + snprintf(name, TXG_THREAD_MAXNAMELEN, "txg_sync %s", spa_name(spa));
for future-proof-ness, I prefer to use sizeof (name) than TXG_THREAD_MAXNAMELEN.
---
Reply to this email directly or view it on GitHub:
https://github.com/openzfs/openzfs/pull/26/files#r43215105
_______________________________________________
developer mailing list
developer@open-zfs.org
http://lists.open-zfs.org/mailman/listinfo/developer