Re: [RFC][PATCH 1/4] perf: core, add group schedulingtransactional APIs

From: Peter Zijlstra
Date: Thu Apr 22 2010 - 05:13:34 EST


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.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/