On Sat, 22 Feb 2014 15:52:17 -0500
Tejun Heo <t...@kernel.org> wrote:

> The problem is rtc_device_unregister().  It grabs rtc->ops_lock and
> then tries to remove the sysfs files.  Some of those sysfs file
> implementations acquire rtc->ops_lock, so it of course can lead to
> deadlocks.  One can't try to delete a sysfs file which acquires a lock
> while holding the same lock.

 Pretty interesting indeed. One option would be to remove
 the sys files before acquiring the lock. But I wonder
 if this could lead to other issues.

-- 

 Best regards,

 Alessandro Zummo,
  Tower Technologies - Torino, Italy

  http://www.towertech.it

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to