]> git.baikalelectronics.ru Git - kernel.git/commit
revert "percpu_counter: new function percpu_counter_sum_and_set"
authorAndrew Morton <akpm@linux-foundation.org>
Tue, 9 Dec 2008 21:14:14 +0000 (13:14 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 10 Dec 2008 16:01:52 +0000 (08:01 -0800)
commit077f0cc47d8898f9050465d930f7afd7cff99980
tree2ee10b2f0cbfb615c40a2df98627426b8543d6cd
parentde32c98fbdd0587fde77842f4a9ca9a4b47e335f
revert "percpu_counter: new function percpu_counter_sum_and_set"

Revert

    commit 79f36b442a30622523d6b82ca8f65c9112d016d3
    Author: Mingming Cao <cmm@us.ibm.com>
    Date:   Fri Jul 11 19:27:31 2008 -0400

        percpu_counter: new function percpu_counter_sum_and_set

As described in

revert "percpu counter: clean up percpu_counter_sum_and_set()"

the new percpu_counter_sum_and_set() is racy against updates to the
cpu-local accumulators on other CPUs.  Revert that change.

This means that ext4 will be slow again.  But correct.

Reported-by: Eric Dumazet <dada1@cosmosbay.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mingming Cao <cmm@us.ibm.com>
Cc: <linux-ext4@vger.kernel.org>
Cc: <stable@kernel.org> [2.6.27.x]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ext4/balloc.c
include/linux/percpu_counter.h
lib/percpu_counter.c