Re: [PATCH] net: rds: fix per-cpu helper usage

From: David Miller
Date: Fri Jan 17 2014 - 20:53:44 EST


From: Gerald Schaefer <gerald.schaefer@xxxxxxxxxx>
Date: Thu, 16 Jan 2014 16:54:48 +0100

> commit ae4b46e9d "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@xxxxxxxxxxxxxxx> # 3.8+
> Signed-off-byd Gerald Schaefer <gerald.schaefer@xxxxxxxxxx>

Applied and queued up for -stable, thanks.
--
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/