virito_scsi: use freezable WQ for events
authorPaolo Bonzini <[email protected]>
Tue, 14 Oct 2014 23:52:33 +0000 (10:22 +1030)
committerRusty Russell <[email protected]>
Tue, 14 Oct 2014 23:55:11 +0000 (10:25 +1030)
commit1fa5b2a784dc52d929432bcc963a0bfb3a74608f
tree355e848dfd4805806e9065163e0ac262b53796f7
parente53fbd11e983e896adaabef2d2f1695d6e0af829
virito_scsi: use freezable WQ for events

Michael S. Tsirkin noticed a race condition:
we reset device on freeze, but system WQ is still
running so it might try adding bufs to a VQ meanwhile.

To fix, switch to handling events from the freezable WQ.

Reported-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: Rusty Russell <[email protected]>
drivers/scsi/virtio_scsi.c