Krzysztof Helt 537a1bf059 fbdev: add mutex for fb_mmap locking
Add a mutex to avoid a circular locking problem between the mm layer
semaphore and fbdev ioctl mutex through the fb_mmap() call.

Also, add mutex to all places where smem_start and smem_len fields change
so the mutex inside the fb_mmap() is actually used.  Changing of these
fields before calling the framebuffer_register() are not mutexed.

This is 2.6.31 material.  It removes one lockdep (fb_mmap() and
register_framebuffer()) but there is still another one (fb_release() and
register_framebuffer()).  It also cleans up handling of the smem_start and
smem_len fields used by mutexed section of the fb_mmap().

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-06-30 18:56:00 -07:00
..
2009-06-30 18:56:00 -07:00
2008-03-10 18:01:20 -07:00
2009-06-30 18:56:00 -07:00
2009-06-30 18:56:00 -07:00
2009-05-12 14:11:35 -07:00
2009-04-01 08:59:31 -07:00
2009-06-16 19:47:59 -07:00
2009-04-01 08:59:32 -07:00
2007-05-04 17:59:05 -07:00
2007-05-04 17:59:05 -07:00
2007-05-04 17:59:05 -07:00
2007-05-04 17:59:05 -07:00
2007-05-04 17:59:05 -07:00
2009-06-30 18:56:00 -07:00
2007-05-04 17:59:05 -07:00
2009-01-12 20:56:32 +01:00
2008-07-24 10:47:34 -07:00
2009-06-16 19:47:58 -07:00
2008-05-18 13:28:49 -07:00
2009-05-06 16:36:10 -07:00
2009-06-30 18:56:00 -07:00
2007-05-08 11:15:26 -07:00
2009-03-27 14:51:15 +01:00
2009-06-30 18:56:00 -07:00
2008-04-28 08:58:41 -07:00
2009-01-06 15:59:27 -08:00
2009-01-06 15:59:27 -08:00
2009-03-17 09:30:36 +09:00
2009-06-30 18:56:00 -07:00
2009-06-30 18:56:00 -07:00
2009-04-01 08:59:31 -07:00
2007-10-16 09:43:22 -07:00
2009-04-01 08:59:31 -07:00
2009-06-12 21:46:59 +09:30
2008-10-16 11:21:42 -07:00
2007-05-08 11:15:32 -07:00
2009-06-30 18:56:00 -07:00