Return-Path: Return-Path: Subject: Re: [PATCH 10/17] nvme: switch controller refcounting to use struct device To: Christoph Hellwig Cc: Jens Axboe , Keith Busch , Hannes Reinecke , Johannes Thumshirn , linux-nvme@lists.infradead.org, linux-block@vger.kernel.org References: <20171018165258.23212-1-hch@lst.de> <20171018165258.23212-11-hch@lst.de> <20171019072053.GA12168@lst.de> <05edcff6-4c56-39d9-83c8-e3eae03b824d@grimberg.me> <20171019073741.GA12348@lst.de> From: Sagi Grimberg Message-ID: <827bd4b9-4228-32e4-e8dd-17679f2dfeba@grimberg.me> Date: Thu, 19 Oct 2017 13:02:59 +0300 MIME-Version: 1.0 In-Reply-To: <20171019073741.GA12348@lst.de> Content-Type: text/plain; charset=utf-8; format=flowed List-ID: >> I don't think the fabrics device does not help us to keep the ctrl >> allocated until we finish removal. > > All fabrics drivers grab an extra reference during ->create_ctrl, > which we will drop when releasing the file descriptor that we used > to create the device. > > By the time we call ->delete_ctrl in nvmf_create_ctrl we must still > have that reference because we are still in a ->write call and thus > ->release can't have been called yet. Thanks for the clarification. Is it worth a preparatory patch to change that before the ctrl device integration for change log clarity?