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)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 10 Apr 2013 02:20:03 +0000 (03:20 +0100)
commitc39ea1c36ac173cd07643f91e19671de3fe377e2
treec7f848e07a8c9ea224bab40aed98ab8870fc105f
parenta0a551fcc3199a6e9fb6c0236daff99bbe278905
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: Ben Hutchings <ben@decadent.org.uk>
drivers/tty/vt/vc_screen.c