Re: [PATCH] percpu_counter : add percpu_counter_add_fast()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 21 Oct 2010, Andrew Morton wrote:

> That isn't actually what I was suggesting.  I was suggesting the use of
> an inlined, this_cpu_add()-using percpu_counter_add() variant which
> still does the batched spilling into ->count.  IOW, just speed up the
> current implementation along the lines of
>
> {
> 	val = this_cpu_add_return(*fbc->counters, amount);

this_cpu_add_return() is not in the kernel but could be realized using a
variant offshoot of cmpxchg_local. I had something like that initially but
omitted it since there was no use case.

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


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux