From patchwork Fri Nov 9 02:20:46 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: solomon X-Patchwork-Id: 197914 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 034632C008F for ; Fri, 9 Nov 2012 13:21:08 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757470Ab2KICUy (ORCPT ); Thu, 8 Nov 2012 21:20:54 -0500 Received: from mail-da0-f46.google.com ([209.85.210.46]:48745 "EHLO mail-da0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757066Ab2KICUw (ORCPT ); Thu, 8 Nov 2012 21:20:52 -0500 Received: by mail-da0-f46.google.com with SMTP id n41so1448870dak.19 for ; Thu, 08 Nov 2012 18:20:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=1JLE7kkWz7hsZcpIFkJU00rTnHZ/IKib0grDg2Rbu1k=; b=ZAZbmPBnqsz++iciRSmcVxGkSNdX/vg9NxBzuXh7IxLqvFtUvK6tlsvIDdO2fO9mnz 8RmHxnnFvCF9XYJRQ2O/KW0yhZXGTmuCG5PxwjqbIVak7yy8cBpW3qkpnfRiBIaXFzWa dJbloVtOoVZog0HmgSuMJMEKDSpKphszXxcxwcWQDx3ttFsIMbxJYm4TZv0qkYGq2jrv Okr+qfR3NBgOhqkTyVElbeMFG2bGpbePk2spWVkIElH0I6uuSkDdGjxnyXlgdvOvApr7 HeouqDxIj4n4NoqWw6hzrNQYe3RvXDxKzPBpVgSWOmvYUYgsjAIbyu8QwjhxJ6VJ9m0k lzRA== Received: by 10.68.138.229 with SMTP id qt5mr28967056pbb.122.1352427652084; Thu, 08 Nov 2012 18:20:52 -0800 (PST) Received: from [172.30.10.127] ([121.14.96.125]) by mx.google.com with ESMTPS id yi9sm16869320pbc.39.2012.11.08.18.20.47 (version=SSLv3 cipher=OTHER); Thu, 08 Nov 2012 18:20:51 -0800 (PST) Message-ID: <509C687E.1080106@gmail.com> Date: Fri, 09 Nov 2012 10:20:46 +0800 From: Shan Wei User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 MIME-Version: 1.0 To: venkat.x.venkatsubra@oracle.com, David Miller , rds-devel@oss.oracle.com, NetDev , Kernel-Maillist , cl@linux-foundation.org, Shan Wei Subject: [PATCH v3 2/9] net: rds: use this_cpu_ptr per-cpu helper Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Shan Wei Signed-off-by: Shan Wei Reviewed-by: Christoph Lameter --- no changes vs v2. --- net/rds/ib_recv.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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 */