2010/8/3 James Bottomley <James.Bottomley@suse.de>:
The pm-qos interface creates the request object in open and destroys
it in release just like the suspend blocker interface. We need stats
for each client which is lost if you free the object every time you
unblock suspend.
Or are you talking about user space opening and closing the stats
interface (which does not cause any problems)?
There is no way fix it without changing the user space visible
behavior of the API. The kernel does not know when it is safe to free
the objects.
Which pm-qos objects are you referring to? The struct pm_qos_object
that backs each pm-qos class is long lived (I don't know why this is
named pm_qos_object), but we need stats in struct pm_qos_request_list.
--
Arve Hjønnevåg
--