virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
From: Amit Shah <amit.shah@redhat.com>
To: Rusty Russell <rusty@rustcorp.com.au>
Cc: Amit Shah <amit.shah@redhat.com>,
	Virtualization List <virtualization@lists.linux-foundation.org>
Subject: [PATCH 3/5] virtio: rng: don't wait on host when module is going away
Date: Mon, 28 May 2012 12:18:41 +0530	[thread overview]
Message-ID: <0acbbc9dfb845f418ae73fafe960f21a8167d561.1338187342.git.amit.shah@redhat.com> (raw)
In-Reply-To: <cover.1338187342.git.amit.shah@redhat.com>
In-Reply-To: <cover.1338187342.git.amit.shah@redhat.com>

No use waiting for input from host when the module is being removed.
We're going to remove the vq in the next step anyway, so just perform
any other steps for cleanup (currently none).

Signed-off-by: Amit Shah <amit.shah@redhat.com>
---
 drivers/char/hw_random/virtio-rng.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/char/hw_random/virtio-rng.c b/drivers/char/hw_random/virtio-rng.c
index c8a9350..2dc9ce1 100644
--- a/drivers/char/hw_random/virtio-rng.c
+++ b/drivers/char/hw_random/virtio-rng.c
@@ -109,6 +109,7 @@ static int virtrng_probe(struct virtio_device *vdev)
 static void __devexit virtrng_remove(struct virtio_device *vdev)
 {
 	vdev->config->reset(vdev);
+	busy = false;
 	hwrng_unregister(&virtio_hwrng);
 	vdev->config->del_vqs(vdev);
 }
-- 
1.7.7.6

  parent reply	other threads:[~2012-05-28  6:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-28  6:48 [PATCH 0/5] virtio: rng: fixes Amit Shah
2012-05-28  6:48 ` [PATCH 1/5] virtio ids: fix comment for virtio-rng Amit Shah
2012-05-28  6:48 ` [PATCH 2/5] virtio: rng: allow tasks to be killed that are waiting for rng input Amit Shah
2012-05-28  6:48 ` Amit Shah [this message]
2012-05-28  6:48 ` [PATCH 4/5] virtio: rng: split out common code in probe / remove for s3/s4 ops Amit Shah
2012-05-28  6:48 ` [PATCH 5/5] virtio: rng: s3/s4 support Amit Shah
2012-05-28  8:24 ` [PATCH 0/5] virtio: rng: fixes Rusty Russell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0acbbc9dfb845f418ae73fafe960f21a8167d561.1338187342.git.amit.shah@redhat.com \
    --to=amit.shah@redhat.com \
    --cc=rusty@rustcorp.com.au \
    --cc=virtualization@lists.linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).