relay: Use per CPU constructs for the relay channel buffer pointers
authorAkash Goel <akash.goel@intel.com>
Fri, 2 Sep 2016 19:47:38 +0000 (21:47 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 6 Sep 2016 16:30:19 +0000 (18:30 +0200)
commit017c59c042d01fc84cae7a8ea475861e702c77ab
treeee665d166dff1e47e5815fd74130e67c23ba29bf
parentee1e714b94521b0bb27b04dfd1728ec51b19d4f0
relay: Use per CPU constructs for the relay channel buffer pointers

relay essentially needs to maintain a per CPU array of channel buffer
pointers but it manually creates that array.  Instead its better to use
the per CPU constructs, provided by the kernel, to allocate & access the
array of pointer to channel buffers.

Signed-off-by: Akash Goel <akash.goel@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://lkml.kernel.org/r/1470909140-25919-1-git-send-email-akash.goel@intel.com
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/linux/relay.h
kernel/relay.c