Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933808Ab2JaRcY (ORCPT ); Wed, 31 Oct 2012 13:32:24 -0400 Received: from a193-30.smtp-out.amazonses.com ([199.255.193.30]:23368 "EHLO a193-30.smtp-out.amazonses.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932968Ab2JaRcV (ORCPT ); Wed, 31 Oct 2012 13:32:21 -0400 Date: Wed, 31 Oct 2012 17:32:20 +0000 From: Christoph Lameter X-X-Sender: cl@gentwo.org To: Shan Wei cc: venkat.x.venkatsubra@oracle.com, David Miller , rds-devel@oss.oracle.com, NetDev , Kernel-Maillist Subject: Re: [PATCH 2/9] net: rds: use this_cpu_ptr per-cpu helper In-Reply-To: <509109ED.7060900@gmail.com> Message-ID: <0000013ab7e18181-c7fd1c9b-5ba6-4765-817f-cbf12448be41-000000@email.amazonses.com> References: <509109ED.7060900@gmail.com> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SES-Outgoing: 199.255.193.30 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 762 Lines: 24 On Wed, 31 Oct 2012, Shan Wei wrote: > diff --git a/net/rds/ib_recv.c b/net/rds/ib_recv.c > index 8d19491..a4a5064 100644 > --- a/net/rds/ib_recv.c > +++ b/net/rds/ib_recv.c > @@ -423,7 +423,7 @@ static void rds_ib_recv_cache_put(struct list_head *new_item, > > local_irq_save(flags); > > - chp = per_cpu_ptr(cache->percpu, smp_processor_id()); > + chp = this_cpu_ptr(cache->percpu); > if (!chp->first) > INIT_LIST_HEAD(new_item); > else /* put on front */ > Reviewed-by: Christoph Lameter -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/