Messages in this thread | | | From | Jinlong Chen <> | Subject | Re: [PATCH] blk-mq: put the reference of the io scheduler module after switching back | Date | Thu, 13 Oct 2022 22:18:12 +0800 |
| |
> > 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
| |