From patchwork Fri Mar 11 15:28:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Andrzej Siewior X-Patchwork-Id: 8566541 Return-Path: X-Original-To: patchwork-linux-scsi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D7628C0553 for ; Fri, 11 Mar 2016 15:29:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 02739202B8 for ; Fri, 11 Mar 2016 15:29:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 12A1C20272 for ; Fri, 11 Mar 2016 15:29:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932545AbcCKP3r (ORCPT ); Fri, 11 Mar 2016 10:29:47 -0500 Received: from www.linutronix.de ([62.245.132.108]:37976 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932586AbcCKP3c (ORCPT ); Fri, 11 Mar 2016 10:29:32 -0500 Received: from localhost ([127.0.0.1] helo=bazinga.breakpoint.cc) by Galois.linutronix.de with esmtp (Exim 4.80) (envelope-from ) id 1aeP0D-0006Yk-He; Fri, 11 Mar 2016 16:29:21 +0100 From: Sebastian Andrzej Siewior To: linux-scsi@vger.kernel.org Cc: "James E.J. Bottomley" , "Martin K. Petersen" , rt@linutronix.de, Sebastian Andrzej Siewior , Vasu Dev , Christoph Hellwig , fcoe-devel@open-fcoe.org Subject: [PATCH 04/11] scsi/fcoe: rename p0 to p_target in fcoe_percpu_thread_destroy() Date: Fri, 11 Mar 2016 16:28:56 +0100 Message-Id: <1457710143-29182-5-git-send-email-bigeasy@linutronix.de> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1457710143-29182-1-git-send-email-bigeasy@linutronix.de> References: <1457710143-29182-1-git-send-email-bigeasy@linutronix.de> X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1, SHORTCIRCUIT=-0.0001, URIBL_BLOCKED=0.001 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The `p' and `p0' variables have very small names on can get mixed up easily. Thus I rename `p0' to `p_target' so it sounds more like the target pointer than `p0' does. Cc: Vasu Dev Cc: "James E.J. Bottomley" Cc: "Martin K. Petersen" Cc: Christoph Hellwig Cc: fcoe-devel@open-fcoe.org Cc: linux-scsi@vger.kernel.org Signed-off-by: Sebastian Andrzej Siewior --- drivers/scsi/fcoe/fcoe.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c index 50e9e980563e..06f56b7f51c2 100644 --- a/drivers/scsi/fcoe/fcoe.c +++ b/drivers/scsi/fcoe/fcoe.c @@ -1284,7 +1284,7 @@ static void fcoe_percpu_thread_destroy(unsigned int cpu) struct task_struct *thread; struct page *crc_eof; struct sk_buff *skb; - struct fcoe_percpu_s *p0; + struct fcoe_percpu_s *p_target; unsigned targ_cpu = get_cpu(); FCOE_DBG("Destroying receive thread for CPU %d\n", cpu); @@ -1305,15 +1305,15 @@ static void fcoe_percpu_thread_destroy(unsigned int cpu) * can easily happen when the module is removed. */ if (cpu != targ_cpu) { - p0 = &per_cpu(fcoe_percpu, targ_cpu); - spin_lock_bh(&p0->fcoe_rx_list.lock); - if (p0->thread) { + p_target = &per_cpu(fcoe_percpu, targ_cpu); + spin_lock_bh(&p_target->fcoe_rx_list.lock); + if (p_target->thread) { FCOE_DBG("Moving frames from CPU %d to CPU %d\n", cpu, targ_cpu); while ((skb = __skb_dequeue(&p->fcoe_rx_list)) != NULL) - __skb_queue_tail(&p0->fcoe_rx_list, skb); - spin_unlock_bh(&p0->fcoe_rx_list.lock); + __skb_queue_tail(&p_target->fcoe_rx_list, skb); + spin_unlock_bh(&p_target->fcoe_rx_list.lock); } else { /* * The targeted CPU is not initialized and cannot accept @@ -1322,7 +1322,7 @@ static void fcoe_percpu_thread_destroy(unsigned int cpu) */ while ((skb = __skb_dequeue(&p->fcoe_rx_list)) != NULL) kfree_skb(skb); - spin_unlock_bh(&p0->fcoe_rx_list.lock); + spin_unlock_bh(&p_target->fcoe_rx_list.lock); } } else { /*