virtio_console: avoid config access from irq
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 5 Mar 2015 00:15:49 +0000 (10:45 +1030)
committerBen Hutchings <ben@decadent.org.uk>
Sat, 9 May 2015 22:16:26 +0000 (23:16 +0100)
commit0e20a057e0fa6245f8437ba763a66c8cc0b9fdf3
tree55948e02732eba1d7ee723d7c6f51d92cac0a220
parent711077a666f760b9c7c266725b4a5ec804248ebe
virtio_console: avoid config access from irq

commit eeb8a7e8bb123e84daeef84f5a2eab99ad2839a2 upstream.

when multiport is off, virtio console invokes config access from irq
context, config access is blocking on s390.
Fix this up by scheduling work from config irq - similar to what we do
for multiport configs.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
[bwh: Backported to 3.2:
 - Adjust context
 - Drop changes to virtcons_freeze()]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/char/virtio_console.c