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> |
||
|---|---|---|
| .. | ||
| g450_pll.c | ||
| g450_pll.h | ||
| i2c-matroxfb.c | ||
| Makefile | ||
| matroxfb_accel.c | ||
| matroxfb_accel.h | ||
| matroxfb_base.c | ||
| matroxfb_base.h | ||
| matroxfb_crtc2.c | ||
| matroxfb_crtc2.h | ||
| matroxfb_DAC1064.c | ||
| matroxfb_DAC1064.h | ||
| matroxfb_g450.c | ||
| matroxfb_g450.h | ||
| matroxfb_maven.c | ||
| matroxfb_maven.h | ||
| matroxfb_misc.c | ||
| matroxfb_misc.h | ||
| matroxfb_Ti3026.c | ||
| matroxfb_Ti3026.h | ||