linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "K. Y. Srinivasan" <kys@microsoft.com>
To: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org,
	devel@linuxdriverproject.org, olaf@aepfle.de, apw@canonical.com,
	jasowang@redhat.com
Cc: "K. Y. Srinivasan" <kys@microsoft.com>
Subject: [PATCH RESEND 4/6] Drivers: hv: balloon: Make the balloon driver not unloadable
Date: Tue, 12 Mar 2013 11:02:20 -0700	[thread overview]
Message-ID: <1363111342-30242-4-git-send-email-kys@microsoft.com> (raw)
In-Reply-To: <1363111342-30242-1-git-send-email-kys@microsoft.com>

The balloon driver is stateful. For instance, it needs to keep track of pages
that have been ballooned out to properly post pressure reports. This state cannot
be re-constructed if the driver were to be unloaded and subsequently loaded.
Furthermore, as we support memory hot-add as part of this driver, this driver becomes
even more stateful and this state cannot be re-created. Make the balloon driver
unloadable to deal with this issue.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
---
 drivers/hv/hv_balloon.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/drivers/hv/hv_balloon.c b/drivers/hv/hv_balloon.c
index 13fda38..4743db9 100644
--- a/drivers/hv/hv_balloon.c
+++ b/drivers/hv/hv_balloon.c
@@ -1096,14 +1096,7 @@ static int __init init_balloon_drv(void)
 	return vmbus_driver_register(&balloon_drv);
 }
 
-static void exit_balloon_drv(void)
-{
-
-	vmbus_driver_unregister(&balloon_drv);
-}
-
 module_init(init_balloon_drv);
-module_exit(exit_balloon_drv);
 
 MODULE_DESCRIPTION("Hyper-V Balloon");
 MODULE_VERSION(HV_DRV_VERSION);
-- 
1.7.4.1


  parent reply	other threads:[~2013-03-12 17:33 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-12 18:01 [PATCH RESEND 0/6] Drivers: hv K. Y. Srinivasan
2013-03-12 18:02 ` [PATCH RESEND 1/6] Drivers: hv: balloon: Do not request completion notification K. Y. Srinivasan
2013-03-12 18:02   ` [PATCH RESEND 2/6] Drivers: hv: balloon: Execute balloon inflation in a separate context K. Y. Srinivasan
2013-03-12 18:02   ` [PATCH RESEND 3/6] Drivers: hv: balloon: Execute hot-add code " K. Y. Srinivasan
2013-03-12 18:02   ` K. Y. Srinivasan [this message]
2013-03-12 18:02   ` [PATCH RESEND 5/6] Drivers: hv: balloon: Implement hot-add functionality K. Y. Srinivasan
2013-03-13 16:50     ` Olaf Hering
2013-03-13 17:25       ` KY Srinivasan
2013-03-12 18:02   ` [PATCH RESEND 6/6] Drivers: hv: vmbus: Handle channel rescind message correctly K. Y. Srinivasan
2013-03-14 20:38 [PATCH RESEND 0/6] Drivers: hv K. Y. Srinivasan
2013-03-14 20:39 ` [PATCH RESEND 1/6] Drivers: hv: balloon: Do not request completion notification K. Y. Srinivasan
2013-03-14 20:39   ` [PATCH RESEND 4/6] Drivers: hv: balloon: Make the balloon driver not unloadable K. Y. Srinivasan

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=1363111342-30242-4-git-send-email-kys@microsoft.com \
    --to=kys@microsoft.com \
    --cc=apw@canonical.com \
    --cc=devel@linuxdriverproject.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=jasowang@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=olaf@aepfle.de \
    /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).