On Thu, 2010-04-22 at 15:51 +0800, Lin Ming wrote:> + if (pmu->commit_txn) {> + ret = pmu->commit_txn(pmu);> + if (!ret) {> + if (pmu->stop_txn)> + pmu->stop_txn(pmu);> +> + return 0;> + }> + } I think we can mandate that if one of the _txn methods is available,they all are, it would be weird otherwise.