lkml.org 
[lkml]   [2022]   [Oct]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] blk-mq: put the reference of the io scheduler module after switching back
From
Date
Hi!

在 2022/10/13 22:18, Jinlong Chen 写道:
>>
>> But I don't see elevator_switch() release the referenct of the module
>> it is switching from. It's still not balance to me.
>>
>
> The reference count is released here:
>
> elevator_switch_mq()
> --> elevator_exit()
> --> __elevator_exit()
> --> kobject_put()
> --> kobject_release()
> --> elevator_release()
> --> elevator_put()
>
> What a deep call stack. :)

Yes, you're right.

Thanks,
Kuai
>
> Sincerely,
> Jinlong Chen
> .
>

\
 
 \ /
  Last update: 2022-10-14 09:28    [W:0.047 / U:0.348 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site