Messages in this thread | | | Subject | Re: [PATCH] blk-mq: put the reference of the io scheduler module after switching back | From | Yu Kuai <> | Date | Fri, 14 Oct 2022 15:27:29 +0800 |
| |
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 > . >
| |