From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [RFC PATCH] scsi, block: fix duplicate bdi name registration crashes Date: Wed, 1 Feb 2017 09:08:01 +0100 Message-ID: <20170201080801.GB29170@lst.de> References: <148566590827.1627.3631056985359212959.stgit@dwillia2-desk3.amr.corp.intel.com> <20170130122452.GA9043@lst.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-block-owner@vger.kernel.org To: Dan Williams Cc: Christoph Hellwig , "Martin K. Petersen" , Jens Axboe , linux-block@vger.kernel.org, linux-scsi , "linux-kernel@vger.kernel.org" , James Bottomley , Bart Van Assche , Omar Sandoval List-Id: linux-scsi@vger.kernel.org On Mon, Jan 30, 2017 at 12:57:05PM -0800, Dan Williams wrote: > > struct kref { > atomic_t refcount; > }; > > ...so what do we gain by open coding kref_get() and kref_put()? A much less ugly calling convention.