[PATCH 3/3] nvme-core: fix nvme module ref count Oops

Logan Gunthorpe logang at deltatee.com
Tue Sep 8 11:33:54 EDT 2020



On 2020-09-05 4:03 p.m., Chaitanya Kulkarni wrote:
> On 9/4/20 08:57, Logan Gunthorpe wrote:
>> I'd probably just fold these changes into the previous patch. When we
>> get a reference to the controller we must also get a reference to the
>> transport module. So no sense getting the different references in
>> different patches.
>>
>> Logan
>>
> 
> That is a preparation needed to actually fix the bug.


Depends which bug you are talking about. I'd fix the bug with the char
dev file open which requires both taking a reference to the controller
and a reference to the transport module. Might as well do both in one patch.

Then I'd fix the bug with the passthru reference to the controller by
taking a reference to the module in that path somehow.

Logan



More information about the Linux-nvme mailing list