https://bugzilla.kernel.org/show_bug.cgi?id=35642





--- Comment #7 from tianyu.lan <tianyu....@intel.com>  2011-06-21 01:44:28 ---
Created an attachment (id=63012)
 --> (https://bugzilla.kernel.org/attachment.cgi?id=63012)
debug patch

Please try this patch. I guess this problem is introduced by commit
25be5821521640eb00b7eb219ffe59664510d073. 
    The battery_notify refreshes the sysfs without check whether the battery
exits or not. It will invoke sysfs_add_battery very time. It is not reasonable.
This may cause sysfs_remove_battery to invoke power_supply_unregister when
battery doesn't exit. 
     The sysfs_remove_battery will be invoked in the acpi_battery_update
and battery_notify. The acpi_battery_update will be invoked when accessing
"/proc/acpi/battery/BAT0/state". So when system resumes from suspend with
conky, the sysfs_remove_battery maybe be invoked simultaneously.The
power_supply_unregister has chance to be invoked twice. This may lead the
problem and produces such message.

-- 
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
acpi-bugzilla mailing list
acpi-bugzilla@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acpi-bugzilla

Reply via email to