aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorK. Y. Srinivasan <kys@microsoft.com>2013-03-15 15:25:42 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-03-15 15:11:50 -0400
commit0cf40a3e661b09c0dda795a77ccc0402c3153859 (patch)
tree46c78769fb68002e55863bcd5176fcf35722eb9e
parentc51af826cf062af3c49a99a05a33236d93c57e72 (diff)
Drivers: hv: balloon: Make the balloon driver not unloadable
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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/hv/hv_balloon.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/hv/hv_balloon.c b/drivers/hv/hv_balloon.c
index 13fda3807bfb..4743db9e5f34 100644
--- a/drivers/hv/hv_balloon.c
+++ b/drivers/hv/hv_balloon.c
@@ -1096,14 +1096,7 @@ static int __init init_balloon_drv(void)
1096 return vmbus_driver_register(&balloon_drv); 1096 return vmbus_driver_register(&balloon_drv);
1097} 1097}
1098 1098
1099static void exit_balloon_drv(void)
1100{
1101
1102 vmbus_driver_unregister(&balloon_drv);
1103}
1104
1105module_init(init_balloon_drv); 1099module_init(init_balloon_drv);
1106module_exit(exit_balloon_drv);
1107 1100
1108MODULE_DESCRIPTION("Hyper-V Balloon"); 1101MODULE_DESCRIPTION("Hyper-V Balloon");
1109MODULE_VERSION(HV_DRV_VERSION); 1102MODULE_VERSION(HV_DRV_VERSION);