Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp4554104ybh; Tue, 6 Aug 2019 13:49:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqxUeG83XjSCPAilLf5qYKfBAaNmDeGDlqVkaoJOd+9qpoxurqZYVYm+BBBnnC3qQBSR8LQw X-Received: by 2002:a63:194f:: with SMTP id 15mr4775467pgz.382.1565124597162; Tue, 06 Aug 2019 13:49:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565124597; cv=none; d=google.com; s=arc-20160816; b=axMGlII3dAYkcXkJ8s7DJTU1vglmUD8GtxJPjcF2PNV8pLH+s3gRYcDkvzXi6EFVoW 8v2RWTTFj7IngBzQ+mESI77tlQuyZEkiilliI1nwYR9j1lXrMV3A39Dw7DBuOBAuhHni DFFbJZLWENeuMx2taMnP84V5Qxi1FAm8BYm3GvEUNCLtfELxWYuJnL5hqolv0Cm6kyEz Z2O0jOulJlmyOSmxlGsFvW10QgyHCB/mSVU4FdkXuYaWxeRnhuATsIZEwc1XqW8WPtQG pE8l9xKklRwgiOzY7sJPqk6zHEyDNBpKLdlsnTFcZWDF464MkkAKT2giLxOWNttOYreG EIXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=9gPGwL8CaQ4uViPkL8KFJ43BCYPwzvxhD5gt0ixv/tk=; b=lkQPRa0Ojh+s7yi09ClR2QrzYsIsyq11gVtuWulYD9/vJHtlS4r3/wFcvkX30w/t/X 2GjQbGZWSX5D+2Sb25VN61rrb6Kpgc5E2hYqvUmcrCM19xQTHFpudB0VdcdIc5ReGLQF xgxq/EEBOm3lnf7yjkww2orcWv7C6kn1KLLEm6OTUh3KTJ5/KCPPgIXrGaS+sVeCMHh2 mpZ+UiyyJuFfInJMO52eCNWayKP2ewqsbTJd3cS+NNQ+ZN3c+rvhwGoa1Q46OvdOqxR+ xvpguvRcVN7d4Xwyb/msBhA3YHvJN5cVozQyMBhm5J4JfAcMM+QwL1ZcYFSN3eq7Xdgn dXog== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w21si49219506pff.263.2019.08.06.13.49.41; Tue, 06 Aug 2019 13:49:57 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726780AbfHFUsv (ORCPT + 99 others); Tue, 6 Aug 2019 16:48:51 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:49582 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725973AbfHFUsv (ORCPT ); Tue, 6 Aug 2019 16:48:51 -0400 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::d71]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id A05ED1264D598; Tue, 6 Aug 2019 13:48:48 -0700 (PDT) Date: Tue, 06 Aug 2019 13:48:48 -0700 (PDT) Message-Id: <20190806.134848.2232719643712591918.davem@davemloft.net> To: saeedm@mellanox.com Cc: hslester96@gmail.com, linux-rdma@vger.kernel.org, netdev@vger.kernel.org, leon@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] net/mlx5e: Use refcount_t for refcount From: David Miller In-Reply-To: References: <20190802164828.20243-1-hslester96@gmail.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Tue, 06 Aug 2019 13:48:48 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Saeed Mahameed Date: Tue, 6 Aug 2019 20:42:56 +0000 > On Sat, 2019-08-03 at 00:48 +0800, Chuhong Yuan wrote: >> refcount_t is better for reference counters since its >> implementation can prevent overflows. >> So convert atomic_t ref counters to refcount_t. >> >> Signed-off-by: Chuhong Yuan >> --- >> Changes in v2: >> - Add #include. >> > > Acked-by: Saeed Mahameed > > Dave, up to you take it, or leave it to me :). Please take it, thank you.