]> bbs.cooldavid.org Git - net-next-2.6.git/commit
[S390] 3270: lock dependency fixes
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 12 Jun 2009 08:26:31 +0000 (10:26 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 12 Jun 2009 08:27:33 +0000 (10:27 +0200)
commit205d7ab9c9af6847dda30650a0b8f98555a20654
treeb77071becdd91a01ba2b30b3bdd79388f738b96b
parentfcf7581f7ca82e63e4e137be77c342a4e4ec8401
[S390] 3270: lock dependency fixes

Lockdep found a problem with the lock order of the view lock and the
ccw device lock. raw3270_activate_view/raw3270_deactivate_view first
take the ccw device lock then call the activate/deactivate functions
of the view which take view lock. The update functions of the
con3270/tty3270 view will first take the view lock, then take the
ccw device lock. To fix this the activate/deactivate functions are
changed to avoid taking the view lock by moving the functions calls
that modify the 3270 output buffer to the update function which is
called by a timer.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/char/con3270.c
drivers/s390/char/tty3270.c