]> git.baikalelectronics.ru Git - kernel.git/commit
virtio_scsi: fix race on device removal
authorMichael S. Tsirkin <mst@redhat.com>
Tue, 14 Oct 2014 23:52:33 +0000 (10:22 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 14 Oct 2014 23:55:12 +0000 (10:25 +1030)
commit451467ba164d493d3a8bdf3c0d20051ace5cf3e1
tree48c0db846c0d9ca6bea32f87adfbfebb5b385c2c
parent9bc0b0836ebece0e5f48b5eef1395f622064b319
virtio_scsi: fix race on device removal

We cancel event work on device removal, but an interrupt
could trigger immediately after this, and queue it
again.

To fix, set a flag.

Loosely based on patch by Paolo Bonzini

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/scsi/virtio_scsi.c