]> 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 16:25:50 +0000 (09:25 -0700)
commit240e18740d9f9f45fc31b6a5b792eefc25561c27
treea2db327c970d6ad7a5650e958c0031276252dcee
parentf80725b652aca0871ea2cc8b2e037edf67de7630
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