Re: BUG: lock held when returning to user space

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Gabriel C <nix.or.die@...>
Cc: <a.zummo@...>, Linux Kernel Mailing List <linux-kernel@...>, Andrew Morton <akpm@...>, <rtc-linux@...>, Peter Zijlstra <a.p.zijlstra@...>
Date: Saturday, October 27, 2007 - 11:12 am

On Sat, 27 Oct 2007, Gabriel C wrote:


Yes, this is because rtc keeps a char_lock mutex locked as long as the 
device is open, to avoid concurrent accessess.

It could be easily substituted by some counting -- setting and clearing 
bit in struct rtc_device instead of using char_lock, but doing this just 
to shut the lockdep off is questionable imho.

Peter, what is the preferred way to annotate these kinds of locking for 
lockdep to express that it is intended?

-- 
Jiri Kosina
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
BUG: lock held when returning to user space, Gabriel C, (Sat Oct 27, 10:19 am)
Re: BUG: lock held when returning to user space, Jiri Kosina, (Sat Oct 27, 11:12 am)
Re: BUG: lock held when returning to user space, Arjan van de Ven, (Sat Oct 27, 11:47 am)
Re: BUG: lock held when returning to user space, Peter Zijlstra, (Sat Oct 27, 12:09 pm)
Re: BUG: lock held when returning to user space, Arjan van de Ven, (Sat Oct 27, 1:05 pm)
Re: BUG: lock held when returning to user space, Peter Zijlstra, (Sat Oct 27, 11:28 am)
Re: BUG: lock held when returning to user space, Jiri Kosina, (Sat Oct 27, 6:47 pm)
Re: BUG: lock held when returning to user space, Linus Torvalds, (Sat Oct 27, 12:35 pm)
Re: BUG: lock held when returning to user space, Andrew Morton, (Sat Oct 27, 11:46 am)
Re: BUG: lock held when returning to user space, Jiri Kosina, (Sun Oct 28, 7:12 am)
Re: BUG: lock held when returning to user space, Alessandro Zummo, (Mon Oct 29, 8:20 am)