Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp2332611ybh; Sun, 4 Aug 2019 22:59:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqzVUm/80XZdExJFVLZlqWBhFkO1tdz+n+bTh2gQ3TxmJiQfk49oU9FRVoI3RQXDpOACVK5R X-Received: by 2002:a17:902:a03:: with SMTP id 3mr141005383plo.302.1564984778552; Sun, 04 Aug 2019 22:59:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564984778; cv=none; d=google.com; s=arc-20160816; b=0vchiXEiconvuhScC/5/mWFsyud0YnKqYWTyGwE59z4WCg3ZqywL/TfoEDoejqvyXb 0jLtWm6cw2dKkVBguXWdBqeNDnDbQLBvvWYWQfoMnkPvoBHx6JK5TU89sHqbCHn9ZuCJ HQvzI+pRo9jQFj4JM7haXOFDFs1mYyg57Np5nMHmWKy5cJSIoBJd2tvR3q89q8tx/V1d YpE+TyzBSsy2XKKnkZhPLXtEvfPA8waqYKR9dq77zLznp9kbKEc9ysygBlzFkqKHtsQc dGXH5DMPUWjMc00dTaYtvcrAMltLjhcrJot3QATZZLwHKA1e23TgvUwGnQk2kXdh3Rpo 5TsA== 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=CluuMJNOmsHOA+mAZyMfZg778egHHWNYSrWjkWdY6cI=; b=s6OiulTtHEfBuPDDkbCQv23/KZyKvIhC00KgHibNNXksC42AIvz7K4hehhgDD8U7MW WuGNQfH6uWzKuy6gzcfo586+CHpUhLlJ69hfUMuUS8TQQl2pjbq5N65mM1H7yu98EHOj Rs55/9iU5zbIjOG2qBDPDos0kf5gagJEXQ2w0Ac9z9wqQAmcEECrx2HkDEbSUR+A3dA1 flkIcV8frmgvFfZVzAkndFWs0Sk77bOA2cdLgB2k2Rfus9diMMpfcyNuJmx4Nihp3TLh UXmfkFMU0lXyEk5+mFVAOzi94eoRHirQyraG7fA0gO0AMCtUSzLG4gPtl7y+VcVaRlty 2igQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LEnRxcXU; 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 c1si41992051pgw.444.2019.08.04.22.59.22; Sun, 04 Aug 2019 22:59:38 -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=LEnRxcXU; 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 S1727266AbfHEF53 (ORCPT + 99 others); Mon, 5 Aug 2019 01:57:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:44124 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725951AbfHEF52 (ORCPT ); Mon, 5 Aug 2019 01:57:28 -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 0961B20657; Mon, 5 Aug 2019 05:57:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564984647; bh=CluuMJNOmsHOA+mAZyMfZg778egHHWNYSrWjkWdY6cI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LEnRxcXU43u2fZXKbn6MhQzNUjxbHOrdqfVA1Y0H/3qTz5hhcdCwvvAxMtGuObd4k 6S/gfgGtA1mzMSK0vwmWmonBjHg7SeOvW1gEJc1OnMp3kZIyssFGVFqpo0g8YXmHYI y7xrk7M3Sn88ATaKkP+Ys7RbQqz5rj4Hcn2SgbcY= Date: Mon, 5 Aug 2019 08:57:23 +0300 From: Leon Romanovsky To: Chuhong Yuan Cc: Saeed Mahameed , "David S . Miller" , Doug Ledford , Jason Gunthorpe , linux-rdma@vger.kernel.org, Netdev , LKML Subject: Re: [PATCH 0/3] Use refcount_t for refcount Message-ID: <20190805055723.GM4832@mtr-leonro.mtl.com> References: <20190802121035.1315-1-hslester96@gmail.com> <20190804124820.GH4832@mtr-leonro.mtl.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 Sun, Aug 04, 2019 at 10:58:19PM +0800, Chuhong Yuan wrote: > On Sun, Aug 4, 2019 at 8:48 PM Leon Romanovsky wrote: > > > > On Fri, Aug 02, 2019 at 08:10:35PM +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. > > > > > > First convert the refcount field to refcount_t in mlx5/driver.h. > > > Then convert the uses to refcount_() APIs. > > > > You can't do it, because you need to ensure that driver compiles and > > works between patches. By converting driver.h alone to refcount_t, you > > simply broke mlx5 driver. > > > > It is my fault... I am not clear how to send patches which cross > several subsystems, so I sent them in series. > Maybe I should merge these patches together? In case of conversion patches, yes, you need to perform such change in one shot. > > > > NAK, to be clear. > > > > And please don't sent series of patches as standalone patches. > > > > Due to the reason mentioned above, I sent them seperately. Create patch, run ./scripts/get_maintainer.pl on it and send according to generated output. You are not doing kernel core changes and there is no need to worry about cross subsystem complexity as long as you will put relevant maintainers in TO: field. Thanks > > > Thanks,