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 .