Skip to content
Commit c196403b authored by Gerald Schaefer's avatar Gerald Schaefer Committed by David S. Miller
Browse files

net: rds: fix per-cpu helper usage

commit ae4b46e9

 "net: rds: use this_cpu_* per-cpu helper" broke per-cpu
handling for rds. chpfirst is the result of __this_cpu_read(), so it is
an absolute pointer and not __percpu. Therefore, __this_cpu_write()
should not operate on chpfirst, but rather on cache->percpu->first, just
like __this_cpu_read() did before.

Cc: <stable@vger.kernel.org> # 3.8+
Signed-off-byd Gerald Schaefer <gerald.schaefer@de.ibm.com>

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8c12ec74
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment