]> git.karo-electronics.de Git - karo-tx-linux.git/commit
vt: synchronize_rcu() under spinlock is not nice...
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 27 Mar 2013 00:30:17 +0000 (20:30 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Apr 2013 17:16:36 +0000 (10:16 -0700)
commit8cc034e4c1b7901787bbf72908bc584c055b5e09
treea6434b15e0fb353c800568358fcfd22ae50bad59
parent19c85a53434ec90c1c6d6b0717e1eb37c5f2f84d
vt: synchronize_rcu() under spinlock is not nice...

commit e8cd81693bbbb15db57d3c9aa7dd90eda4842874 upstream.

vcs_poll_data_free() calls unregister_vt_notifier(), which calls
atomic_notifier_chain_unregister(), which calls synchronize_rcu().
Do it *after* we'd dropped ->f_lock.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/vc_screen.c