lkml.org 
[lkml]   [2022]   [Oct]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] blk-mq: put the reference of the io scheduler module after switching back
Date
> 
> 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. :)

Sincerely,
Jinlong Chen

\
 
 \ /
  Last update: 2022-10-13 16:19    [W:0.093 / U:0.492 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site