Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp4887878ybh; Tue, 6 Aug 2019 20:18:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqwptDmLNQfLMl3uiomqHrM0ZfT4pHO45+rLYJFT+HuOfK3mAWtFsPlXbUmWKpgoiwPgKnqs X-Received: by 2002:a65:4505:: with SMTP id n5mr5241177pgq.301.1565147908855; Tue, 06 Aug 2019 20:18:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565147908; cv=none; d=google.com; s=arc-20160816; b=NLp2H48+CpOeXTDAF66Bags1v5qmKWiT8gNZ7/Y6miRAdRM0G45r8++VlXwDqMLH3+ c4yCiiVOvjwCGpG4973KloZ0KX2CNjq/piqEMFqp1CPSZnlkENe9ZCyn9J80mes101gy EtZ0QIzxP7JgKPo0XIc11+rWr9rwZZhQaw4dV01twXHoiX6toT10hqMJFuFo6QbUKWia GudN2EyCWwWKiwAywC/3VgGAwk5bhcHCfKskGqOwjFCJhqdSUWDXE5pdti4oUSMuSM3y 1vyL5P5/a/dV48WseN1soGLPYQyxzLtfZ2TlWmsK2pxQ9JPhw9/PPj6fujxrZPcFqn9S /Mog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=zo6Og9243W0sDQ8GqHi9d9vqZ01+ZHbHjNRwgotVbF4=; b=SiNjp8bPG12b9I+OADjpKQQvqeOjuzaJ+JnAcs0l+F/ZOO5xIL8Xx0WjYayQIROD98 udKvlIFfZO8OWRiVMhbI/dy4xnPSCInqN+9Qvy3wTkQVGQg80CC4YiWHjlPplQJhWIfy 9nfpkqmTIcaXXDhlGVU+hWifd5DoapYo52cSrFQFWVdKNliOJqJE5Ntu4hwgK3foZnFB JQTENeVKr9HbRclbSa1QHClI4qTn+hgE9LmCeU8GhtAPkw3JV5Ki84+llFwjsIvj6o/L rjy0wi9kZsZtKhqFqw8pHVlJyDR89//hwmC7J9s7JMlvaL2RpaZ6ap9A3vXnRc4Clh0O pDcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qxvDb6Vb; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l28si55911604pgm.311.2019.08.06.20.18.12; Tue, 06 Aug 2019 20:18:28 -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=@kernel.org header.s=default header.b=qxvDb6Vb; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728058AbfHGDRd (ORCPT + 99 others); Tue, 6 Aug 2019 23:17:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:60182 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726334AbfHGDRc (ORCPT ); Tue, 6 Aug 2019 23:17:32 -0400 Received: from localhost (unknown [77.137.115.125]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5E4DD214C6; Wed, 7 Aug 2019 03:17:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565147852; bh=6+4LzktwvLiiZsXR5dAoM1MwMXyVEPFtN6KSyIYk9QI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qxvDb6VbHFau5ksd8dvNrBr1fsolVTYOGD7+DxUW2y6PrAd77CQ02zirUGyB+vj9T MI0gvD1LeJ77LuEBmbX5fPDhtBZamrBCkw+BfbfWBA7gC8vxgrkGXjCTfDyLlrgpe7 1p3si5sZOfKFy0r7EiqmPXi/GGhr6uREwHbmjIEQ= Date: Wed, 7 Aug 2019 06:17:17 +0300 From: Leon Romanovsky To: Saeed Mahameed Cc: "hslester96@gmail.com" , "linux-rdma@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , "davem@davemloft.net" , "jgg@ziepe.ca" , "dledford@redhat.com" Subject: Re: [PATCH v3] mlx5: Use refcount_t for refcount Message-ID: <20190807031717.GB4832@mtr-leonro.mtl.com> References: <20190806015950.18167-1-hslester96@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.0 (2019-05-25) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 06, 2019 at 08:40:11PM +0000, Saeed Mahameed wrote: > On Tue, 2019-08-06 at 09:59 +0800, Chuhong Yuan wrote: > > Reference counters are preferred to use refcount_t instead of > > atomic_t. > > This is because the implementation of refcount_t can prevent > > overflows and detect possible use-after-free. > > So convert atomic_t ref counters to refcount_t. > > > > Signed-off-by: Chuhong Yuan > > --- > > Changes in v3: > > - Merge v2 patches together. > > > > drivers/infiniband/hw/mlx5/srq_cmd.c | 6 +++--- > > drivers/net/ethernet/mellanox/mlx5/core/qp.c | 6 +++--- > > include/linux/mlx5/driver.h | 3 ++- > > 3 files changed, 8 insertions(+), 7 deletions(-) > > > > LGTM, Leon, let me know if you are happy with this version, > this should go to mlx5-next. Thanks, Acked-by: Leon Romanovsky