Re: matroxfb: fix regression with uninitalized fb_info->mm_lock mutex (second head)

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
2009-07-07 20:33:17
Also in
lkml
Reply to
Krzysztof Helt, 2009-07-07

On Tue, 7 Jul 2009, Krzysztof Helt wrote:
Remove redundant locking by the mm_lock mutex before a second head of matrox 
framebuffer is registered.
Why do you write misleading commentary like this.
quoted hunk ↗ jump to hunk
+/*
+ * This function is called before the register_framebuffer so
+ * no locking is needed.
+ */
Or this?

It's not about "needed". The locking is not only not needed, it would be 
BUGGY.

And it's not "redundant". That implies that it's done somewhere else. It's 
more than "not needed" - it would be actively buggy to lock things there.

I really don't like how you're approaching this. You're ignoring the real 
issues I ask you, you're writing misleading comments and commit messages, 
and the end result is fragile code. I still don't understand why you 
insist on initializing those things late, which is the primary problem 
here.

		Linus
Thread (2 messages) 2 messages, 2 authors, last reply 2009-07-07
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help