linux/drivers/video/sis
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
..
300vtbl.h
310vtbl.h
init301.c [PATCH] drivers/video/sis: Convert to generic boolean 2007-02-12 09:48:42 -08:00
init301.h video/sis/: remove compat code 2008-07-24 10:47:37 -07:00
init.c [PATCH] drivers/video/sis: Convert to generic boolean 2007-02-12 09:48:42 -08:00
init.h video/sis/: remove compat code 2008-07-24 10:47:37 -07:00
initdef.h
initextlfb.c video/sis/: remove compat code 2008-07-24 10:47:37 -07:00
Makefile
oem300.h
oem310.h
osdef.h video/sis/: remove compat code 2008-07-24 10:47:37 -07:00
sis_accel.c video/sis/: remove compat code 2008-07-24 10:47:37 -07:00
sis_accel.h [PATCH] drivers/video/sis/sis_accel.h: removal of old code 2006-10-03 08:04:11 -07:00
sis_main.c fbdev: add mutex for fb_mmap locking 2009-06-30 18:56:00 -07:00
sis_main.h video/sis/: remove compat code 2008-07-24 10:47:37 -07:00
sis.h video/sis/: remove compat code 2008-07-24 10:47:37 -07:00
vgatypes.h video/sis/: remove compat code 2008-07-24 10:47:37 -07:00
vstruct.h [PATCH] drivers/video/sis: Convert to generic boolean 2007-02-12 09:48:42 -08:00