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:04:19 +0000 (10:04 -0700)
commit86302600f82d715647154e18a96245642f1bf71e
treeb586260ea3bcd7a9e94fd328b53f0c12280efcb3
parent840d38a30d24c15fa29555f10a114feeff02cd80
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