From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751772AbdBAIIS (ORCPT ); Wed, 1 Feb 2017 03:08:18 -0500 Received: from verein.lst.de ([213.95.11.211]:33577 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751302AbdBAIIN (ORCPT ); Wed, 1 Feb 2017 03:08:13 -0500 Date: Wed, 1 Feb 2017 09:08:01 +0100 From: Christoph Hellwig 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 Subject: Re: [RFC PATCH] scsi, block: fix duplicate bdi name registration crashes 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 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@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.