lkml.org 
[lkml]   [2014]   [Mar]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: kernfs/rtc: circular dependency between kernfs and ops_lock
On 02/24/2014 06:04 AM, Alessandro Zummo wrote:
> On Sat, 22 Feb 2014 15:52:17 -0500
> Tejun Heo <tj@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.
>

Ping? Seems this thing got lost.


Thanks,
Sasha


\
 
 \ /
  Last update: 2014-03-25 23:41    [W:0.047 / U:1.352 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site