Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1090654imm; Wed, 11 Jul 2018 17:08:32 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdy3vLka8KFVrM8EOWphQuCmb66/T/fDKR2yvTT5ZBA8BzfEQ8qNQ29SMLr8igmOaQev0DE X-Received: by 2002:a17:902:b112:: with SMTP id q18-v6mr8268plr.284.1531354112073; Wed, 11 Jul 2018 17:08:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531354112; cv=none; d=google.com; s=arc-20160816; b=nL2IeTs4/wjmmo2udzoSBKoHDJi/zgfNVf+9HJvfiZ1vvWavL1YJ6uDCh5VsgutRhm TES2xyogTHQlOcqg6EYX3KjZY7Of2fg+vtM2g+X/c8eOKGoZKJZiqb/kevlaL39WwUAd 04r+0AJWYrsaZ6tfYs57R6resK6Kdj+Ek9CGOkr13gns06LPSqFv64CU6mWOKFHhyzMg sWZ877du0VelRJyAlHsZ2WvlDMQ+adhX0LtMJL62RTrLe0P/zd6hw40DshueInnYqomM gJqCLVB1Z38YWKGphcn6WoisHXwLCzZP+92MvAhyc0PDVFc+gnR3X9xvQKhJTLtHkmUi XbYg== 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:arc-authentication-results; bh=dNWOPijWMoJAn8cAcDislrnTD3/Xbfg4rJqcIbdOx8U=; b=qTKjmIHyZmkx8kAyxgW/joCs8Zhv7DFU+hxO+wb7QX5QNa/ZRaNMMGEHl39QEbcT9O QXB9dUmttQxLeJb/EiVVXPBc2krbj6k8YYn/t2KuvyMdLdDQWEmHz8dnc+gGFwNtuZH5 mjhAo4A4J42zoxKQ2ZU1k6ZYf798TnDbnU21z+/8lOmWsULhI4ltWjKradQHV0NSHzBj S0/TGcC1tRt1cLBIqm8I6uQriq+FiJyV78ej+YjmrMbypNJABlIyYrAfJEHoMUJxbnVq iHnqPlPx4BxNSpqcNUinbSe7kBCsS/7OOl/VQFIQNXNEWJf9Lzv0Xvfiu8eKJAzWq4VG aeXA== 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; dmarc=fail (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 n7-v6si19873039pgm.612.2018.07.11.17.08.16; Wed, 11 Jul 2018 17:08:32 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387946AbeGKSb1 (ORCPT + 99 others); Wed, 11 Jul 2018 14:31:27 -0400 Received: from mail-pf0-f170.google.com ([209.85.192.170]:39572 "EHLO mail-pf0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387823AbeGKSb1 (ORCPT ); Wed, 11 Jul 2018 14:31:27 -0400 Received: by mail-pf0-f170.google.com with SMTP id s21-v6so18962596pfm.6 for ; Wed, 11 Jul 2018 11:25:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=dNWOPijWMoJAn8cAcDislrnTD3/Xbfg4rJqcIbdOx8U=; b=b9MP/WMQBSzihdhj271I9GRUm+PuYIzIPMBhAKsVyAWXt+ieSdORS+t3M4chOUdfdZ I9ZueQn20+MDeSP6N3pMjkgaUwW88DBnFkspm31ub8gBj76OByris6tTaPmnOXinmHld i1i+VB1w3MNd4pd/q7y9XhBtKIPE8wnX0A6oMeVZSvFK9knzDP3yKvpazWDe+DGkrgjr CkMA2a3t2hnTnSv9nGfsfxKWB8tSMy4THkwhWdKzsWshwDLtuU/i92oB9kxouRtqHjwT rzz2ovy0zdLF2/RSxE108K01CEXGd6DdcjtikAiuor0vcbwpFO+r6O63lbbpV5SzQsrQ pwKw== X-Gm-Message-State: APt69E1LfRKreLIWLMKyQMh7ivD7fHpc9kKFGTKKaLhLdy1ti2emsCfZ 7tk2P8WeCJ3PE23Cc8ksvXHHvQ== X-Received: by 2002:a62:b40c:: with SMTP id h12-v6mr18352828pfn.18.1531333554751; Wed, 11 Jul 2018 11:25:54 -0700 (PDT) Received: from localhost ([207.114.172.147]) by smtp.gmail.com with ESMTPSA id 64-v6sm7977331pfe.151.2018.07.11.11.25.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 11 Jul 2018 11:25:54 -0700 (PDT) Date: Wed, 11 Jul 2018 11:25:53 -0700 From: Moritz Fischer To: Alan Tull Cc: federico.vaga@cern.ch, linux-fpga@vger.kernel.org, linux-kernel Subject: Re: fpga: fpga_mgr_free usage Message-ID: <20180711182553.GA5356@archbook> References: <5553262.evi6GU8epL@pcbe13614> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Alan, On Wed, Jul 11, 2018 at 10:59:01AM -0500, Alan Tull wrote: > On Wed, Jul 11, 2018 at 7:38 AM, Federico Vaga wrote: [..] > > This makes the usage consistent: the user creates and destroy its own > > objects. This is also consistent with our other discussion where we > > said, among the other things, that the module that uses the FPGA > > manager can the owner of the fpga_manager data structure. > > You're not the first to complain about this. I think I'll err on the > side of consistency and implement your option 2 here. I agree, that seems like a good approach. Cheers, Moritz