Re: [PATCH] cpuset: mm: Reduce large amounts of memory barrierrelated damage v3

From: Peter Zijlstra
Date: Mon Mar 26 2012 - 07:08:04 EST


On Mon, 2012-03-26 at 12:56 +0200, Peter Zijlstra wrote:
> static inline bool put_mems_allowed(unsigned int seq)
> {
> - return !read_seqcount_retry(&current->mems_allowed_seq, seq);
> + return likely(!read_seqcount_retry(&current->mems_allowed_seq, seq));
> }

Ignore this hunk, read_seqcount_retry() already has a branch hint in.
I'll send a new version if people thing the rest of the patch is worth
it.
--
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/