fb: rework locking to fix lock ordering on takeover
Adjust the console layer to allow a take over call where the caller already holds the locks. Make the fb layer lock in order. This is partly a band aid, the fb layer is terminally confused about the locking rules it uses for its notifiers it seems. [akpm@linux-foundation.org: remove stray non-ascii char, tidy comment] [akpm@linux-foundation.org: export do_take_over_console()] [airlied: cleanup another non-ascii char] Signed-off-by:Alan Cox <alan@linux.intel.com> Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de> Cc: Stephen Rothwell <sfr@canb.auug.org.au> Cc: Jiri Kosina <jkosina@suse.cz> Cc: stable <stable@vger.kernel.org> Tested-by:
Sedat Dilek <sedat.dilek@gmail.com> Reviewed-by:
Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Dave Airlie <airlied@redhat.com>
Showing
- drivers/tty/vt/vt.c 70 additions, 23 deletionsdrivers/tty/vt/vt.c
- drivers/video/console/fbcon.c 28 additions, 1 deletiondrivers/video/console/fbcon.c
- drivers/video/fbmem.c 2 additions, 3 deletionsdrivers/video/fbmem.c
- drivers/video/fbsysfs.c 3 additions, 0 deletionsdrivers/video/fbsysfs.c
- include/linux/console.h 1 addition, 0 deletionsinclude/linux/console.h
Loading
Please register or sign in to comment