public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Deadlock in fb and tty
@ 2013-09-11  9:25 John Tapsell
  2013-09-11 15:33 ` Peter Hurley
  0 siblings, 1 reply; 4+ messages in thread
From: John Tapsell @ 2013-09-11  9:25 UTC (permalink / raw)
  To: linux-kernel

Hi,
  I'm consistently and constantly hitting a deadlock.

console_callback in drivers/tty/vt/vt.c does:  console_lock()  and then calls:
  do_blank_screen, which calls:
    vc->vc_sw->con_blank(..)  which can be a pointer to the function:
      fbcon_blank in video/console/fbcon.c.  This is missing a
WARN_CONSOLE_UNLOCKED.  This calls:
        fbcon_generic_blank which does lock_fb_info(info)

So we have a console_lock() followed by a lock_fb_info(info).

Now if while that is running, we have an ioctl call:

do_fb_ioctl in drivers/video/fbmem.c which does:
               if (!lock_fb_info(info))
                        return -ENODEV;
                console_lock();


So it tries to acquire the same locks in the reverse order.  This
deadlocks consistently for me.

(I'm also curious why I'm hitting this continually, when everyone else
seems to be okay.)

I understand that this is really difficult to fix, but if anyone has
even a suggestion on how to hack it to make it work for me, I'd be
very grateful.

Thank you,

John Tapsell

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-09-17 19:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-11  9:25 Deadlock in fb and tty John Tapsell
2013-09-11 15:33 ` Peter Hurley
2013-09-12 13:22   ` johnflux
2013-09-17 19:09     ` Peter Hurley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox