[PATCH WIP/RFC v3 3/6] nvme_rdma: keep a ref on the ctrl during delete/flush
Christoph Hellwig
hch at lst.de
Thu Sep 1 01:36:09 PDT 2016
On Tue, Aug 30, 2016 at 08:24:50PM +0300, Sagi Grimberg wrote:
>
>> - /* Queue controller deletion */
>> + /*
>> + * Queue controller deletion. Keep a reference until all
>> + * work is flushed since delete_work will free the ctrl mem
>> + */
>> + kref_get(&ctrl->ctrl.kref);
>
> kref_get_unless_zero?
How could the refcount be zero here?
More information about the Linux-nvme
mailing list