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)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 27 Mar 2013 00:30:17 +0000 (20:30 -0400)
commite8cd81693bbbb15db57d3c9aa7dd90eda4842874
treef8ba631b03652f9e570fa1e8bd0395af63cf2bb3
parent7ea600b5314529f9d1b9d6d3c41cb26fce6a7a4a
vt: synchronize_rcu() under spinlock is not nice...

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.

Cc: stable@vger.kernel.org (all kernels since 2.6.37)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/tty/vt/vc_screen.c