Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp3252155ybh; Mon, 5 Aug 2019 15:01:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqwvdoInzBxMGqJEe9F0THpcnCrOMWYFdAiqz7X4qKsFrzv2gJYgzvqwse/XvPgOSDd6nlxE X-Received: by 2002:a63:1d2:: with SMTP id 201mr29338pgb.307.1565042470184; Mon, 05 Aug 2019 15:01:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565042470; cv=none; d=google.com; s=arc-20160816; b=v4pHrxks8JuGcooP/mzI6qIJPzHlAXQTSwHAB3ZlHJi2nmEs9aeJKzSck2/QfaQXJb UBrcL8+tGOWuaCjYQlVwNdZ+gOiAYh3/v2LPA9zfEpIzZKz1+FF/xGt4ZxRf8Kelzg3/ sdMphsbrKFy77Rl0BcKSO/QABCJzSvaSyVxbAwFWV+vuSbM1GKc5gbxY1SUq9UaAAc/I i3w6k1bH0/QWXyP5/WCRNKC9wJKDk4DFvzlHXU+rgnFXIHuvJVAFKGx00urIpUYkGaVA Wox6vbMbCmiWLAptu45/+v9QgNFsUQyPhUanaqqJqrERIMHTYw8i5rDE9I8Rk0o/xq8o JK9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=fd7ZnrQMa7ZTXSUJY+OfZXB5pnyekIxx1tLCZQSFfD8=; b=afDjPLeXEITItZJ1b1Ct7NdpvvA2zGWfAKruxLxmhuSapnSlnVCvlMKVdFFuud7pnS lIKs+EwWlttRrPbOJXb79+VNZ+t2cSnSEkdsrOH4anjljizms3FxyW2Esq50FzV4DP2d qrA+jUGpoDBsKcBnyLJZJBrNjuqDYE9FKK+j0HVntwtXwIm67nra+EbQHuIxbMZ1NOjJ yuZbLlc+UJqYbuechRUDTcIIr6DYuqBt+mVhtV8eO2+ertrQ3jQweT6g6K6ZoEsrvFdG KRK4jDFx4A7TGOV7+/PF8PlX3bHaNOlvpDkvQIZUpeDXfRsr/gSajnAxIdGsFzrp5i1e 9hIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BXpsRxvo; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m2si40474971pls.391.2019.08.05.15.00.41; Mon, 05 Aug 2019 15:01:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BXpsRxvo; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730515AbfHEV7n (ORCPT + 99 others); Mon, 5 Aug 2019 17:59:43 -0400 Received: from mail-yb1-f195.google.com ([209.85.219.195]:40703 "EHLO mail-yb1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728851AbfHEV7n (ORCPT ); Mon, 5 Aug 2019 17:59:43 -0400 Received: by mail-yb1-f195.google.com with SMTP id j6so7740793ybm.7 for ; Mon, 05 Aug 2019 14:59:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fd7ZnrQMa7ZTXSUJY+OfZXB5pnyekIxx1tLCZQSFfD8=; b=BXpsRxvoHH04OvpOdGBmJ0QXuITzxTFNIOhcG8XhG68lEmgWGHmQpovE4y46CpWyjc R+0EgMtLT0PosjnnLZP4MRfzn1hWkCCax6cJfwwO1GbSf9Ygr23rpiArWWZzI+ZSzpl5 LAYdh1hRBWJVmiRFx/4IG1ymxnTXEMXisV/EsiA6Pa7CynTstAeiqSQxTwByYZLI2dKk xhfKZ9vfUJeRQNPDagpEcXb83oSHNgtnewiVmL0HDiR7iB2FuFUau/DhZNHN3tVcFwKV iBeFdB64VN0xpHekrmqXg5Vyo1L8Q09X+ZB+KhVwMW73JwQRCRWpHHNfTEswU7pM5F+M Umjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fd7ZnrQMa7ZTXSUJY+OfZXB5pnyekIxx1tLCZQSFfD8=; b=hUyAPeWkpDMHBv6Rxo6WlubDHrZCgXWQ92oKBe2CWOlqqQdSaAAnpCyS2mnaFLK+qT 5LDK7bLcLFgcj+krbk3MT3g5aWxmqw5z4r7AADNZtO1Et+eSkRVAMPUawNjrO6pszXRX ynqSkd9GL4+2bGeDuUTHZ8s99pLrWYQRLLEzC2dLdNeQ7nW2VSselohmMWL7Hpkn5WJh 7KcgPFdtnL58ylixiuDMWjAMSYpZuMxMMNO6vDVwQZZI0Qciel+9sXLgRX9861inSgvS AJe1vLRIsAnKqVix5zDBEXnYgdL4lKHGFvbo88fMJwSwCa7IYOLw4dtbTapx/vDAq4Qg wDtw== X-Gm-Message-State: APjAAAXsnQfEyzsYZksiUtd5Gr2q7tTph4/sHio9Fmf6xB9ve2PPHN+p NFfla7eQHORCA7FOFJCr3sFWBL+S X-Received: by 2002:a25:9782:: with SMTP id i2mr255930ybo.437.1565042382029; Mon, 05 Aug 2019 14:59:42 -0700 (PDT) Received: from mail-yb1-f182.google.com (mail-yb1-f182.google.com. [209.85.219.182]) by smtp.gmail.com with ESMTPSA id r85sm19553403ywg.59.2019.08.05.14.59.40 for (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Mon, 05 Aug 2019 14:59:41 -0700 (PDT) Received: by mail-yb1-f182.google.com with SMTP id j6so7740761ybm.7 for ; Mon, 05 Aug 2019 14:59:40 -0700 (PDT) X-Received: by 2002:a25:2516:: with SMTP id l22mr241544ybl.441.1565042380444; Mon, 05 Aug 2019 14:59:40 -0700 (PDT) MIME-Version: 1.0 References: <20190802105507.16650-1-hslester96@gmail.com> <26D9FDECA4FBDD4AADA65D8E2FC68A4A1D40F174@ORSMSX104.amr.corp.intel.com> In-Reply-To: <26D9FDECA4FBDD4AADA65D8E2FC68A4A1D40F174@ORSMSX104.amr.corp.intel.com> From: Willem de Bruijn Date: Mon, 5 Aug 2019 17:59:03 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [Intel-wired-lan] [PATCH 2/2] ixgbe: Use refcount_t for refcount To: "Bowers, AndrewX" Cc: "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "intel-wired-lan@lists.osuosl.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 5, 2019 at 5:43 PM Bowers, AndrewX wrote: > > > -----Original Message----- > > From: Intel-wired-lan [mailto:intel-wired-lan-bounces@osuosl.org] On > > Behalf Of Chuhong Yuan > > Sent: Friday, August 2, 2019 3:55 AM > > Cc: netdev@vger.kernel.org; Chuhong Yuan ; linux- > > kernel@vger.kernel.org; intel-wired-lan@lists.osuosl.org; David S . Miller > > > > Subject: [Intel-wired-lan] [PATCH 2/2] ixgbe: Use refcount_t for refcount > > > > refcount_t is better for reference counters since its implementation can > > prevent overflows. > > So convert atomic_t ref counters to refcount_t. > > > > Also convert refcount from 0-based to 1-based. > > > > This patch depends on PATCH 1/2. > > > > Signed-off-by: Chuhong Yuan > > --- > > drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c | 6 +++--- > > drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.h | 2 +- > > 2 files changed, 4 insertions(+), 4 deletions(-) > > Tested-by: Andrew Bowers To reiterate, this patchset should not be applied as is. It is not correct to simply change the initial refcount.