]> git.baikalelectronics.ru Git - kernel.git/commit
net: rds: fix per-cpu helper usage
authorGerald Schaefer <gerald.schaefer@de.ibm.com>
Thu, 16 Jan 2014 15:54:48 +0000 (16:54 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 18 Jan 2014 01:52:22 +0000 (17:52 -0800)
commit7f0e2aca12f13de4da3c97176b8a467fb8ad9389
tree830220eb7bf83f185c8c611d7154b86bf4bb2138
parent90fa19c893a42b2473fb19dfd0c68420d74121df
net: rds: fix per-cpu helper usage

commit be0485d63 "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: David S. Miller <davem@davemloft.net>
net/rds/ib_recv.c