summaryrefslogtreecommitdiffstats
path: root/Kbuild
diff options
context:
space:
mode:
authorAmos Kong <akong@redhat.com>2014-09-11 22:20:39 +0930
committerRusty Russell <rusty@rustcorp.com.au>2014-09-11 22:28:34 +0930
commit3856e548372513665670ca5db60d9a74b970fe0d (patch)
tree50bf263fb7a3269e38a58c9177741f356912342b /Kbuild
parent7ec62d421bdf29cb31101ae2689f7f3a9906289a (diff)
downloadop-kernel-dev-3856e548372513665670ca5db60d9a74b970fe0d.zip
op-kernel-dev-3856e548372513665670ca5db60d9a74b970fe0d.tar.gz
virtio-rng: fix stuck of hot-unplugging busy device
When we try to hot-remove a busy virtio-rng device from QEMU monitor, the device can't be hot-removed. Because virtio-rng driver hangs at wait_for_completion_killable(). This patch exits the waiting by completing have_data completion before unregistering, resets data_avail to avoid the hwrng core use wrong buffer bytes. Signed-off-by: Amos Kong <akong@redhat.com> Reviewed-by: Amit Shah <amit.shah@redhat.com> Cc: stable@vger.kernel.org Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud