[PATCH 1/2] nvme: Take refcount on transport module when using block device operations

Christoph Hellwig hch at lst.de
Mon Jan 8 07:56:50 PST 2018


On Tue, Jan 09, 2018 at 12:51:11AM +0900, Minwoo Im wrote:
> Hi Max,
> 
> On Fri, Jan 5, 2018 at 12:56 AM, Max Gurtovoy <maxg at mellanox.com> wrote:
> > +       kref_put(&ns->kref, nvme_free_ns);
> 
> This seems identical to nvme_put_ns(ns);
> It would look better if replaced with nvme_put_ns() function call just
> like nvme_release()
> that you have updated in this patch.

I've fixed it in the applied patch, thanks!



More information about the Linux-nvme mailing list