Re: [RFC PATCH] scsi, block: fix duplicate bdi name registration crashes

From: Christoph Hellwig
Date: Wed Feb 01 2017 - 03:08:26 EST


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.