linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/6] Drivers: hv: Consolidate GUID definitions
@ 2013-01-24  1:42 K. Y. Srinivasan
  2013-01-24  1:42 ` [PATCH 1/6] Drivers: hv: vmbus: Consolidate all offer GUID definitions in hyperv.h K. Y. Srinivasan
  0 siblings, 1 reply; 19+ messages in thread
From: K. Y. Srinivasan @ 2013-01-24  1:42 UTC (permalink / raw)
  To: gregkh, linux-kernel, devel, olaf, apw, jasowang, davem, jkosina,
	James.Bottomley
  Cc: K. Y. Srinivasan

Greg suggested that it would be better to consolidate all the offer GUID
definitions in hyperv.h rather than having them defined in several files.
This patch-set does just that. Also, the shutdown code is executed in a thread
context.


K. Y. Srinivasan (6):
  Drivers: hv: vmbus: Consolidate all offer GUID definitions in
    hyperv.h
  Drivers: hv: Use consolidated GUID definitions
  Drivers: net: hyperv: Use the consolidated GUID definition
  Drivers: scsi: storvsc: Use the consolidated GUID definition
  Drivers: hid: hid-hyperv: Use consolidated GUID definitions
  Drivers: hv: Execute shutdown in a thread context

 drivers/hid/hid-hyperv.c        |    3 +-
 drivers/hv/channel_mgmt.c       |   31 +++----------
 drivers/hv/hv_balloon.c         |    4 +-
 drivers/hv/hv_util.c            |   36 +++++++++-----
 drivers/net/hyperv/netvsc_drv.c |    3 +-
 drivers/scsi/storvsc_drv.c      |   12 +++---
 include/linux/hyperv.h          |   94 +++++++++++++++++++++++++++++++++++++++
 7 files changed, 132 insertions(+), 51 deletions(-)

-- 
1.7.4.1


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [PATCH 1/6] Drivers: hv: vmbus: Consolidate all offer GUID definitions in hyperv.h
  2013-01-24  1:42 [PATCH 0/6] Drivers: hv: Consolidate GUID definitions K. Y. Srinivasan
@ 2013-01-24  1:42 ` K. Y. Srinivasan
  2013-01-24  1:42   ` [PATCH 2/6] Drivers: hv: Use consolidated GUID definitions K. Y. Srinivasan
                     ` (4 more replies)
  0 siblings, 5 replies; 19+ messages in thread
From: K. Y. Srinivasan @ 2013-01-24  1:42 UTC (permalink / raw)
  To: gregkh, linux-kernel, devel, olaf, apw, jasowang, davem, jkosina,
	James.Bottomley
  Cc: K. Y. Srinivasan

Consolidate all GUID definitions in hyperv.h and use these definitions in implementing
channel bindings (as far as interrupt delivery goes).

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
---
 drivers/hv/channel_mgmt.c |   31 +++------------
 include/linux/hyperv.h    |   94 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 100 insertions(+), 25 deletions(-)

diff --git a/drivers/hv/channel_mgmt.c b/drivers/hv/channel_mgmt.c
index c80fe62..421d607 100644
--- a/drivers/hv/channel_mgmt.c
+++ b/drivers/hv/channel_mgmt.c
@@ -265,36 +265,17 @@ enum {
 };
 
 /*
- * This is an array of channels (devices) that are performance critical.
+ * This is an array of device_ids (device types) that are performance critical.
  * We attempt to distribute the interrupt load for these devices across
  * all available CPUs.
  */
-static const uuid_le hp_devs[] = {
-	/* {32412632-86cb-44a2-9b5c-50d1417354f5} */
+static const struct hv_vmbus_device_id hp_devs[] = {
 	/* IDE */
-	{
-		.b = {
-			0x32, 0x26, 0x41, 0x32, 0xcb, 0x86, 0xa2, 0x44,
-			0x9b, 0x5c, 0x50, 0xd1, 0x41, 0x73, 0x54, 0xf5
-		}
-	},
-	/* {ba6163d9-04a1-4d29-b605-72e2ffb1dc7f} */
+	{ HV_IDE_GUID, },
 	/* Storage - SCSI */
-	{
-		.b  = {
-			0xd9, 0x63, 0x61, 0xba, 0xa1, 0x04, 0x29, 0x4d,
-			0xb6, 0x05, 0x72, 0xe2, 0xff, 0xb1, 0xdc, 0x7f
-		}
-	},
-	/* {F8615163-DF3E-46c5-913F-F2D2F965ED0E} */
+	{ HV_SCSI_GUID, },
 	/* Network */
-	{
-		.b = {
-			0x63, 0x51, 0x61, 0xF8, 0x3E, 0xDF, 0xc5, 0x46,
-			0x91, 0x3F, 0xF2, 0xD2, 0xF9, 0x65, 0xED, 0x0E
-		}
-	},
-
+	{ HV_NIC_GUID, },
 };
 
 
@@ -320,7 +301,7 @@ static u32 get_vp_index(uuid_le *type_guid)
 	u32 max_cpus = num_online_cpus();
 
 	for (i = IDE; i < MAX_PERF_CHN; i++) {
-		if (!memcmp(type_guid->b, hp_devs[i].b,
+		if (!memcmp(type_guid->b, hp_devs[i].guid,
 				 sizeof(uuid_le))) {
 			perf_chn = true;
 			break;
diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h
index 5095b06..df77ba9 100644
--- a/include/linux/hyperv.h
+++ b/include/linux/hyperv.h
@@ -1159,6 +1159,100 @@ void vmbus_driver_unregister(struct hv_driver *hv_driver);
 		  g8, g9, ga, gb, gc, gd, ge, gf },
 
 /*
+ * GUID definitions of various offer types - services offered to the guest.
+ */
+
+/*
+ * Network GUID
+ * {f8615163-df3e-46c5-913f-f2d2f965ed0e}
+ */
+#define HV_NIC_GUID \
+	.guid = { \
+			0x63, 0x51, 0x61, 0xf8, 0x3e, 0xdf, 0xc5, 0x46, \
+			0x91, 0x3f, 0xf2, 0xd2, 0xf9, 0x65, 0xed, 0x0e \
+		}
+
+/*
+ * IDE GUID
+ * {32412632-86cb-44a2-9b5c-50d1417354f5}
+ */
+#define HV_IDE_GUID \
+	.guid = { \
+			0x32, 0x26, 0x41, 0x32, 0xcb, 0x86, 0xa2, 0x44, \
+			0x9b, 0x5c, 0x50, 0xd1, 0x41, 0x73, 0x54, 0xf5 \
+		}
+
+/*
+ * SCSI GUID
+ * {ba6163d9-04a1-4d29-b605-72e2ffb1dc7f}
+ */
+#define HV_SCSI_GUID \
+	.guid = { \
+			0xd9, 0x63, 0x61, 0xba, 0xa1, 0x04, 0x29, 0x4d, \
+			0xb6, 0x05, 0x72, 0xe2, 0xff, 0xb1, 0xdc, 0x7f \
+		}
+
+/*
+ * Shutdown GUID
+ * {0e0b6031-5213-4934-818b-38d90ced39db}
+ */
+#define HV_SHUTDOWN_GUID \
+	.guid = { \
+			0x31, 0x60, 0x0b, 0x0e, 0x13, 0x52, 0x34, 0x49, \
+			0x81, 0x8b, 0x38, 0xd9, 0x0c, 0xed, 0x39, 0xdb \
+		}
+
+/*
+ * Time Synch GUID
+ * {9527E630-D0AE-497b-ADCE-E80AB0175CAF}
+ */
+#define HV_TS_GUID \
+	.guid = { \
+			0x30, 0xe6, 0x27, 0x95, 0xae, 0xd0, 0x7b, 0x49, \
+			0xad, 0xce, 0xe8, 0x0a, 0xb0, 0x17, 0x5c, 0xaf \
+		}
+
+/*
+ * Heartbeat GUID
+ * {57164f39-9115-4e78-ab55-382f3bd5422d}
+ */
+#define HV_HEART_BEAT_GUID \
+	.guid = { \
+			0x39, 0x4f, 0x16, 0x57, 0x15, 0x91, 0x78, 0x4e, \
+			0xab, 0x55, 0x38, 0x2f, 0x3b, 0xd5, 0x42, 0x2d \
+		}
+
+/*
+ * KVP GUID
+ * {a9a0f4e7-5a45-4d96-b827-8a841e8c03e6}
+ */
+#define HV_KVP_GUID \
+	.guid = { \
+			0xe7, 0xf4, 0xa0, 0xa9, 0x45, 0x5a, 0x96, 0x4d, \
+			0xb8, 0x27, 0x8a, 0x84, 0x1e, 0x8c, 0x3,  0xe6 \
+		}
+
+/*
+ * Dynamic memory GUID
+ * {525074dc-8985-46e2-8057-a307dc18a502}
+ */
+#define HV_DM_GUID \
+	.guid = { \
+			0xdc, 0x74, 0x50, 0X52, 0x85, 0x89, 0xe2, 0x46, \
+			0x80, 0x57, 0xa3, 0x07, 0xdc, 0x18, 0xa5, 0x02 \
+		}
+
+/*
+ * Mouse GUID
+ * {cfa8b69e-5b4a-4cc0-b98b-8ba1a1f3f95a}
+ */
+#define HV_MOUSE_GUID \
+	.guid = { \
+			0x9e, 0xb6, 0xa8, 0xcf, 0x4a, 0x5b, 0xc0, 0x4c, \
+			0xb9, 0x8b, 0x8b, 0xa1, 0xa1, 0xf3, 0xf9, 0x5a \
+		}
+
+/*
  * Common header for Hyper-V ICs
  */
 
-- 
1.7.4.1


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [PATCH 2/6] Drivers: hv: Use consolidated GUID definitions
  2013-01-24  1:42 ` [PATCH 1/6] Drivers: hv: vmbus: Consolidate all offer GUID definitions in hyperv.h K. Y. Srinivasan
@ 2013-01-24  1:42   ` K. Y. Srinivasan
  2013-01-24  1:42   ` [PATCH 3/6] Drivers: net: hyperv: Use the consolidated GUID definition K. Y. Srinivasan
                     ` (3 subsequent siblings)
  4 siblings, 0 replies; 19+ messages in thread
From: K. Y. Srinivasan @ 2013-01-24  1:42 UTC (permalink / raw)
  To: gregkh, linux-kernel, devel, olaf, apw, jasowang, davem, jkosina,
	James.Bottomley
  Cc: K. Y. Srinivasan

Use the consolidated GUID definitions in the util and balloon drivers.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
---
 drivers/hv/hv_balloon.c |    4 +---
 drivers/hv/hv_util.c    |   24 ++++++++++++------------
 2 files changed, 13 insertions(+), 15 deletions(-)

diff --git a/drivers/hv/hv_balloon.c b/drivers/hv/hv_balloon.c
index c02a33e..ce6f984 100644
--- a/drivers/hv/hv_balloon.c
+++ b/drivers/hv/hv_balloon.c
@@ -1012,9 +1012,7 @@ static int balloon_remove(struct hv_device *dev)
 static const struct hv_vmbus_device_id id_table[] = {
 	/* Dynamic Memory Class ID */
 	/* 525074DC-8985-46e2-8057-A307DC18A502 */
-	{ VMBUS_DEVICE(0xdc, 0x74, 0x50, 0X52, 0x85, 0x89, 0xe2, 0x46,
-		       0x80, 0x57, 0xa3, 0x07, 0xdc, 0x18, 0xa5, 0x02)
-	},
+	{ HV_DM_GUID, },
 	{ },
 };
 
diff --git a/drivers/hv/hv_util.c b/drivers/hv/hv_util.c
index a62a760..8b7868a 100644
--- a/drivers/hv/hv_util.c
+++ b/drivers/hv/hv_util.c
@@ -314,21 +314,21 @@ static int util_remove(struct hv_device *dev)
 
 static const struct hv_vmbus_device_id id_table[] = {
 	/* Shutdown guid */
-	{ VMBUS_DEVICE(0x31, 0x60, 0x0B, 0X0E, 0x13, 0x52, 0x34, 0x49,
-		       0x81, 0x8B, 0x38, 0XD9, 0x0C, 0xED, 0x39, 0xDB)
-	  .driver_data = (unsigned long)&util_shutdown },
+	{ HV_SHUTDOWN_GUID,
+	  .driver_data = (unsigned long)&util_shutdown
+	},
 	/* Time synch guid */
-	{ VMBUS_DEVICE(0x30, 0xe6, 0x27, 0x95, 0xae, 0xd0, 0x7b, 0x49,
-		       0xad, 0xce, 0xe8, 0x0a, 0xb0, 0x17, 0x5c, 0xaf)
-	  .driver_data = (unsigned long)&util_timesynch },
+	{ HV_TS_GUID,
+	  .driver_data = (unsigned long)&util_timesynch
+	},
 	/* Heartbeat guid */
-	{ VMBUS_DEVICE(0x39, 0x4f, 0x16, 0x57, 0x15, 0x91, 0x78, 0x4e,
-		       0xab, 0x55, 0x38, 0x2f, 0x3b, 0xd5, 0x42, 0x2d)
-	  .driver_data = (unsigned long)&util_heartbeat },
+	{ HV_HEART_BEAT_GUID,
+	  .driver_data = (unsigned long)&util_heartbeat
+	},
 	/* KVP guid */
-	{ VMBUS_DEVICE(0xe7, 0xf4, 0xa0, 0xa9, 0x45, 0x5a, 0x96, 0x4d,
-		       0xb8, 0x27, 0x8a, 0x84, 0x1e, 0x8c, 0x3,  0xe6)
-	  .driver_data = (unsigned long)&util_kvp },
+	{ HV_KVP_GUID,
+	  .driver_data = (unsigned long)&util_kvp
+	},
 	{ },
 };
 
-- 
1.7.4.1


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [PATCH 3/6] Drivers: net: hyperv: Use the consolidated GUID definition
  2013-01-24  1:42 ` [PATCH 1/6] Drivers: hv: vmbus: Consolidate all offer GUID definitions in hyperv.h K. Y. Srinivasan
  2013-01-24  1:42   ` [PATCH 2/6] Drivers: hv: Use consolidated GUID definitions K. Y. Srinivasan
@ 2013-01-24  1:42   ` K. Y. Srinivasan
  2013-01-24  1:42   ` [PATCH 4/6] Drivers: scsi: storvsc: " K. Y. Srinivasan
                     ` (2 subsequent siblings)
  4 siblings, 0 replies; 19+ messages in thread
From: K. Y. Srinivasan @ 2013-01-24  1:42 UTC (permalink / raw)
  To: gregkh, linux-kernel, devel, olaf, apw, jasowang, davem, jkosina,
	James.Bottomley
  Cc: K. Y. Srinivasan

Use the consolidated GUID definitions in the Hyper-V network driver.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
---
 drivers/net/hyperv/netvsc_drv.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c
index a9975c7..329c989 100644
--- a/drivers/net/hyperv/netvsc_drv.c
+++ b/drivers/net/hyperv/netvsc_drv.c
@@ -498,8 +498,7 @@ static int netvsc_remove(struct hv_device *dev)
 
 static const struct hv_vmbus_device_id id_table[] = {
 	/* Network guid */
-	{ VMBUS_DEVICE(0x63, 0x51, 0x61, 0xF8, 0x3E, 0xDF, 0xc5, 0x46,
-		       0x91, 0x3F, 0xF2, 0xD2, 0xF9, 0x65, 0xED, 0x0E) },
+	{ HV_NIC_GUID, },
 	{ },
 };
 
-- 
1.7.4.1


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [PATCH 4/6] Drivers: scsi: storvsc: Use the consolidated GUID definition
  2013-01-24  1:42 ` [PATCH 1/6] Drivers: hv: vmbus: Consolidate all offer GUID definitions in hyperv.h K. Y. Srinivasan
  2013-01-24  1:42   ` [PATCH 2/6] Drivers: hv: Use consolidated GUID definitions K. Y. Srinivasan
  2013-01-24  1:42   ` [PATCH 3/6] Drivers: net: hyperv: Use the consolidated GUID definition K. Y. Srinivasan
@ 2013-01-24  1:42   ` K. Y. Srinivasan
  2013-01-24  1:42   ` [PATCH 5/6] Drivers: hid: hid-hyperv: Use consolidated GUID definitions K. Y. Srinivasan
  2013-01-24  1:42   ` [PATCH 6/6] Drivers: hv: Execute shutdown in a thread context K. Y. Srinivasan
  4 siblings, 0 replies; 19+ messages in thread
From: K. Y. Srinivasan @ 2013-01-24  1:42 UTC (permalink / raw)
  To: gregkh, linux-kernel, devel, olaf, apw, jasowang, davem, jkosina,
	James.Bottomley
  Cc: K. Y. Srinivasan

Use the consolidated GUID definitions in the Hyper-V storage driver.

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

diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c
index 0144078..270b3cf 100644
--- a/drivers/scsi/storvsc_drv.c
+++ b/drivers/scsi/storvsc_drv.c
@@ -1410,13 +1410,13 @@ enum {
 
 static const struct hv_vmbus_device_id id_table[] = {
 	/* SCSI guid */
-	{ VMBUS_DEVICE(0xd9, 0x63, 0x61, 0xba, 0xa1, 0x04, 0x29, 0x4d,
-		       0xb6, 0x05, 0x72, 0xe2, 0xff, 0xb1, 0xdc, 0x7f)
-	  .driver_data = SCSI_GUID },
+	{ HV_SCSI_GUID,
+	  .driver_data = SCSI_GUID
+	},
 	/* IDE guid */
-	{ VMBUS_DEVICE(0x32, 0x26, 0x41, 0x32, 0xcb, 0x86, 0xa2, 0x44,
-		       0x9b, 0x5c, 0x50, 0xd1, 0x41, 0x73, 0x54, 0xf5)
-	  .driver_data = IDE_GUID },
+	{ HV_IDE_GUID,
+	  .driver_data = IDE_GUID
+	},
 	{ },
 };
 
-- 
1.7.4.1


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [PATCH 5/6] Drivers: hid: hid-hyperv: Use consolidated GUID definitions
  2013-01-24  1:42 ` [PATCH 1/6] Drivers: hv: vmbus: Consolidate all offer GUID definitions in hyperv.h K. Y. Srinivasan
                     ` (2 preceding siblings ...)
  2013-01-24  1:42   ` [PATCH 4/6] Drivers: scsi: storvsc: " K. Y. Srinivasan
@ 2013-01-24  1:42   ` K. Y. Srinivasan
  2013-01-24 10:11     ` Jiri Kosina
  2013-01-24  1:42   ` [PATCH 6/6] Drivers: hv: Execute shutdown in a thread context K. Y. Srinivasan
  4 siblings, 1 reply; 19+ messages in thread
From: K. Y. Srinivasan @ 2013-01-24  1:42 UTC (permalink / raw)
  To: gregkh, linux-kernel, devel, olaf, apw, jasowang, davem, jkosina,
	James.Bottomley
  Cc: K. Y. Srinivasan

Use the consolidated GUID definitions in the Hyper-V mouse driver.

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

diff --git a/drivers/hid/hid-hyperv.c b/drivers/hid/hid-hyperv.c
index 3d62781..aa3fec0 100644
--- a/drivers/hid/hid-hyperv.c
+++ b/drivers/hid/hid-hyperv.c
@@ -568,8 +568,7 @@ static int mousevsc_remove(struct hv_device *dev)
 
 static const struct hv_vmbus_device_id id_table[] = {
 	/* Mouse guid */
-	{ VMBUS_DEVICE(0x9E, 0xB6, 0xA8, 0xCF, 0x4A, 0x5B, 0xc0, 0x4c,
-		       0xB9, 0x8B, 0x8B, 0xA1, 0xA1, 0xF3, 0xF9, 0x5A) },
+	{ HV_MOUSE_GUID, },
 	{ },
 };
 
-- 
1.7.4.1


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [PATCH 6/6] Drivers: hv: Execute shutdown in a thread context
  2013-01-24  1:42 ` [PATCH 1/6] Drivers: hv: vmbus: Consolidate all offer GUID definitions in hyperv.h K. Y. Srinivasan
                     ` (3 preceding siblings ...)
  2013-01-24  1:42   ` [PATCH 5/6] Drivers: hid: hid-hyperv: Use consolidated GUID definitions K. Y. Srinivasan
@ 2013-01-24  1:42   ` K. Y. Srinivasan
  2013-01-24 10:09     ` Jiri Kosina
  4 siblings, 1 reply; 19+ messages in thread
From: K. Y. Srinivasan @ 2013-01-24  1:42 UTC (permalink / raw)
  To: gregkh, linux-kernel, devel, olaf, apw, jasowang, davem, jkosina,
	James.Bottomley
  Cc: K. Y. Srinivasan

Execute the shutdown code in a thread context. With recent changes made to the
shutdown code, shutdown code cannot be invoked from an interrupt context.

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

diff --git a/drivers/hv/hv_util.c b/drivers/hv/hv_util.c
index 8b7868a..aceb67f 100644
--- a/drivers/hv/hv_util.c
+++ b/drivers/hv/hv_util.c
@@ -49,6 +49,16 @@ static struct hv_util_service util_kvp = {
 	.util_deinit = hv_kvp_deinit,
 };
 
+static void perform_shutdown(struct work_struct *dummy)
+{
+		orderly_poweroff(true);
+}
+
+/*
+ * Perform the shutdown operation in a thread context.
+ */
+static DECLARE_WORK(shutdown_work, perform_shutdown);
+
 static void shutdown_onchannelcallback(void *context)
 {
 	struct vmbus_channel *channel = context;
@@ -106,7 +116,7 @@ static void shutdown_onchannelcallback(void *context)
 	}
 
 	if (execute_shutdown == true)
-		orderly_poweroff(true);
+		schedule_work(&shutdown_work);
 }
 
 /*
-- 
1.7.4.1


^ permalink raw reply related	[flat|nested] 19+ messages in thread

* Re: [PATCH 6/6] Drivers: hv: Execute shutdown in a thread context
  2013-01-24  1:42   ` [PATCH 6/6] Drivers: hv: Execute shutdown in a thread context K. Y. Srinivasan
@ 2013-01-24 10:09     ` Jiri Kosina
  2013-01-24 17:06       ` KY Srinivasan
  0 siblings, 1 reply; 19+ messages in thread
From: Jiri Kosina @ 2013-01-24 10:09 UTC (permalink / raw)
  To: K. Y. Srinivasan
  Cc: gregkh, linux-kernel, devel, olaf, apw, jasowang, davem, James.Bottomley

On Wed, 23 Jan 2013, K. Y. Srinivasan wrote:

> Execute the shutdown code in a thread context. With recent changes made to the
> shutdown code, shutdown code cannot be invoked from an interrupt context.
> 
> Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
> Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
> ---
>  drivers/hv/hv_util.c |   12 +++++++++++-
>  1 files changed, 11 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/hv/hv_util.c b/drivers/hv/hv_util.c
> index 8b7868a..aceb67f 100644
> --- a/drivers/hv/hv_util.c
> +++ b/drivers/hv/hv_util.c
> @@ -49,6 +49,16 @@ static struct hv_util_service util_kvp = {
>  	.util_deinit = hv_kvp_deinit,
>  };
>  
> +static void perform_shutdown(struct work_struct *dummy)
> +{
> +		orderly_poweroff(true);
> +}

Is there any particular reason for this kind of crazy indentation?

-- 
Jiri Kosina
SUSE Labs

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH 5/6] Drivers: hid: hid-hyperv: Use consolidated GUID definitions
  2013-01-24  1:42   ` [PATCH 5/6] Drivers: hid: hid-hyperv: Use consolidated GUID definitions K. Y. Srinivasan
@ 2013-01-24 10:11     ` Jiri Kosina
  2013-01-24 14:51       ` Greg KH
  0 siblings, 1 reply; 19+ messages in thread
From: Jiri Kosina @ 2013-01-24 10:11 UTC (permalink / raw)
  To: K. Y. Srinivasan
  Cc: gregkh, linux-kernel, devel, olaf, apw, jasowang, davem, James.Bottomley

On Wed, 23 Jan 2013, K. Y. Srinivasan wrote:

> Use the consolidated GUID definitions in the Hyper-V mouse driver.
> 
> Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
> Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>

Acked-by: Jiri Kosina <jkosina@suse.cz>

Greg, I guess you are taking this as a whole?

Thanks.

> ---
>  drivers/hid/hid-hyperv.c |    3 +--
>  1 files changed, 1 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/hid/hid-hyperv.c b/drivers/hid/hid-hyperv.c
> index 3d62781..aa3fec0 100644
> --- a/drivers/hid/hid-hyperv.c
> +++ b/drivers/hid/hid-hyperv.c
> @@ -568,8 +568,7 @@ static int mousevsc_remove(struct hv_device *dev)
>  
>  static const struct hv_vmbus_device_id id_table[] = {
>  	/* Mouse guid */
> -	{ VMBUS_DEVICE(0x9E, 0xB6, 0xA8, 0xCF, 0x4A, 0x5B, 0xc0, 0x4c,
> -		       0xB9, 0x8B, 0x8B, 0xA1, 0xA1, 0xF3, 0xF9, 0x5A) },
> +	{ HV_MOUSE_GUID, },
>  	{ },
>  };
>  
> -- 
> 1.7.4.1
> 

-- 
Jiri Kosina
SUSE Labs

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH 5/6] Drivers: hid: hid-hyperv: Use consolidated GUID definitions
  2013-01-24 10:11     ` Jiri Kosina
@ 2013-01-24 14:51       ` Greg KH
  0 siblings, 0 replies; 19+ messages in thread
From: Greg KH @ 2013-01-24 14:51 UTC (permalink / raw)
  To: Jiri Kosina
  Cc: K. Y. Srinivasan, linux-kernel, devel, olaf, apw, jasowang,
	davem, James.Bottomley

On Thu, Jan 24, 2013 at 11:11:01AM +0100, Jiri Kosina wrote:
> On Wed, 23 Jan 2013, K. Y. Srinivasan wrote:
> 
> > Use the consolidated GUID definitions in the Hyper-V mouse driver.
> > 
> > Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
> > Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
> 
> Acked-by: Jiri Kosina <jkosina@suse.cz>
> 
> Greg, I guess you are taking this as a whole?

Yes, I can do that, thanks for the ack.

greg k-h

^ permalink raw reply	[flat|nested] 19+ messages in thread

* RE: [PATCH 6/6] Drivers: hv: Execute shutdown in a thread context
  2013-01-24 10:09     ` Jiri Kosina
@ 2013-01-24 17:06       ` KY Srinivasan
  2013-01-24 17:17         ` gregkh
  0 siblings, 1 reply; 19+ messages in thread
From: KY Srinivasan @ 2013-01-24 17:06 UTC (permalink / raw)
  To: Jiri Kosina
  Cc: gregkh, linux-kernel, devel, olaf, apw, jasowang, davem, James.Bottomley



> -----Original Message-----
> From: Jiri Kosina [mailto:jkosina@suse.cz]
> Sent: Thursday, January 24, 2013 5:10 AM
> To: KY Srinivasan
> Cc: gregkh@linuxfoundation.org; linux-kernel@vger.kernel.org;
> devel@linuxdriverproject.org; olaf@aepfle.de; apw@canonical.com;
> jasowang@redhat.com; davem@davemloft.net;
> James.Bottomley@HansenPartnership.com
> Subject: Re: [PATCH 6/6] Drivers: hv: Execute shutdown in a thread context
> 
> On Wed, 23 Jan 2013, K. Y. Srinivasan wrote:
> 
> > Execute the shutdown code in a thread context. With recent changes made to
> the
> > shutdown code, shutdown code cannot be invoked from an interrupt context.
> >
> > Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
> > Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
> > ---
> >  drivers/hv/hv_util.c |   12 +++++++++++-
> >  1 files changed, 11 insertions(+), 1 deletions(-)
> >
> > diff --git a/drivers/hv/hv_util.c b/drivers/hv/hv_util.c
> > index 8b7868a..aceb67f 100644
> > --- a/drivers/hv/hv_util.c
> > +++ b/drivers/hv/hv_util.c
> > @@ -49,6 +49,16 @@ static struct hv_util_service util_kvp = {
> >  	.util_deinit = hv_kvp_deinit,
> >  };
> >
> > +static void perform_shutdown(struct work_struct *dummy)
> > +{
> > +		orderly_poweroff(true);
> > +}
> 
> Is there any particular reason for this kind of crazy indentation?
I don't know how this extra tab crept through! Greg, if you want I can resend
this patch minus the extra tab. Let me know.

Regards,

K. Y
> 
> --
> Jiri Kosina
> SUSE Labs
> 



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH 6/6] Drivers: hv: Execute shutdown in a thread context
  2013-01-24 17:06       ` KY Srinivasan
@ 2013-01-24 17:17         ` gregkh
  2013-01-24 17:23           ` KY Srinivasan
                             ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: gregkh @ 2013-01-24 17:17 UTC (permalink / raw)
  To: KY Srinivasan
  Cc: Jiri Kosina, olaf, jasowang, linux-kernel, James.Bottomley, apw,
	devel, davem

On Thu, Jan 24, 2013 at 05:06:27PM +0000, KY Srinivasan wrote:
> 
> 
> > -----Original Message-----
> > From: Jiri Kosina [mailto:jkosina@suse.cz]
> > Sent: Thursday, January 24, 2013 5:10 AM
> > To: KY Srinivasan
> > Cc: gregkh@linuxfoundation.org; linux-kernel@vger.kernel.org;
> > devel@linuxdriverproject.org; olaf@aepfle.de; apw@canonical.com;
> > jasowang@redhat.com; davem@davemloft.net;
> > James.Bottomley@HansenPartnership.com
> > Subject: Re: [PATCH 6/6] Drivers: hv: Execute shutdown in a thread context
> > 
> > On Wed, 23 Jan 2013, K. Y. Srinivasan wrote:
> > 
> > > Execute the shutdown code in a thread context. With recent changes made to
> > the
> > > shutdown code, shutdown code cannot be invoked from an interrupt context.
> > >
> > > Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
> > > Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
> > > ---
> > >  drivers/hv/hv_util.c |   12 +++++++++++-
> > >  1 files changed, 11 insertions(+), 1 deletions(-)
> > >
> > > diff --git a/drivers/hv/hv_util.c b/drivers/hv/hv_util.c
> > > index 8b7868a..aceb67f 100644
> > > --- a/drivers/hv/hv_util.c
> > > +++ b/drivers/hv/hv_util.c
> > > @@ -49,6 +49,16 @@ static struct hv_util_service util_kvp = {
> > >  	.util_deinit = hv_kvp_deinit,
> > >  };
> > >
> > > +static void perform_shutdown(struct work_struct *dummy)
> > > +{
> > > +		orderly_poweroff(true);
> > > +}
> > 
> > Is there any particular reason for this kind of crazy indentation?
> I don't know how this extra tab crept through! Greg, if you want I can resend
> this patch minus the extra tab. Let me know.

I'll edit it by hand, but someone owes me a beer for it...  :)

greg k-h

^ permalink raw reply	[flat|nested] 19+ messages in thread

* RE: [PATCH 6/6] Drivers: hv: Execute shutdown in a thread context
  2013-01-24 17:17         ` gregkh
@ 2013-01-24 17:23           ` KY Srinivasan
  2013-02-09  0:31           ` KY Srinivasan
  2013-03-01 15:15           ` KY Srinivasan
  2 siblings, 0 replies; 19+ messages in thread
From: KY Srinivasan @ 2013-01-24 17:23 UTC (permalink / raw)
  To: gregkh
  Cc: Jiri Kosina, olaf, jasowang, linux-kernel, James.Bottomley, apw,
	devel, davem



> -----Original Message-----
> From: gregkh@linuxfoundation.org [mailto:gregkh@linuxfoundation.org]
> Sent: Thursday, January 24, 2013 12:18 PM
> To: KY Srinivasan
> Cc: Jiri Kosina; olaf@aepfle.de; jasowang@redhat.com; linux-
> kernel@vger.kernel.org; James.Bottomley@HansenPartnership.com;
> apw@canonical.com; devel@linuxdriverproject.org; davem@davemloft.net
> Subject: Re: [PATCH 6/6] Drivers: hv: Execute shutdown in a thread context
> 
> On Thu, Jan 24, 2013 at 05:06:27PM +0000, KY Srinivasan wrote:
> >
> >
> > > -----Original Message-----
> > > From: Jiri Kosina [mailto:jkosina@suse.cz]
> > > Sent: Thursday, January 24, 2013 5:10 AM
> > > To: KY Srinivasan
> > > Cc: gregkh@linuxfoundation.org; linux-kernel@vger.kernel.org;
> > > devel@linuxdriverproject.org; olaf@aepfle.de; apw@canonical.com;
> > > jasowang@redhat.com; davem@davemloft.net;
> > > James.Bottomley@HansenPartnership.com
> > > Subject: Re: [PATCH 6/6] Drivers: hv: Execute shutdown in a thread context
> > >
> > > On Wed, 23 Jan 2013, K. Y. Srinivasan wrote:
> > >
> > > > Execute the shutdown code in a thread context. With recent changes made
> to
> > > the
> > > > shutdown code, shutdown code cannot be invoked from an interrupt
> context.
> > > >
> > > > Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
> > > > Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
> > > > ---
> > > >  drivers/hv/hv_util.c |   12 +++++++++++-
> > > >  1 files changed, 11 insertions(+), 1 deletions(-)
> > > >
> > > > diff --git a/drivers/hv/hv_util.c b/drivers/hv/hv_util.c
> > > > index 8b7868a..aceb67f 100644
> > > > --- a/drivers/hv/hv_util.c
> > > > +++ b/drivers/hv/hv_util.c
> > > > @@ -49,6 +49,16 @@ static struct hv_util_service util_kvp = {
> > > >  	.util_deinit = hv_kvp_deinit,
> > > >  };
> > > >
> > > > +static void perform_shutdown(struct work_struct *dummy)
> > > > +{
> > > > +		orderly_poweroff(true);
> > > > +}
> > >
> > > Is there any particular reason for this kind of crazy indentation?
> > I don't know how this extra tab crept through! Greg, if you want I can resend
> > this patch minus the extra tab. Let me know.
> 
> I'll edit it by hand, but someone owes me a beer for it...  :)

You got it!

Regards,

K. Y
> 
> greg k-h
> 



^ permalink raw reply	[flat|nested] 19+ messages in thread

* RE: [PATCH 6/6] Drivers: hv: Execute shutdown in a thread context
  2013-01-24 17:17         ` gregkh
  2013-01-24 17:23           ` KY Srinivasan
@ 2013-02-09  0:31           ` KY Srinivasan
  2013-02-09  0:44             ` gregkh
  2013-03-01 15:15           ` KY Srinivasan
  2 siblings, 1 reply; 19+ messages in thread
From: KY Srinivasan @ 2013-02-09  0:31 UTC (permalink / raw)
  To: gregkh
  Cc: Jiri Kosina, olaf, jasowang, linux-kernel, James.Bottomley, apw,
	devel, davem



> -----Original Message-----
> From: gregkh@linuxfoundation.org [mailto:gregkh@linuxfoundation.org]
> Sent: Thursday, January 24, 2013 12:18 PM
> To: KY Srinivasan
> Cc: Jiri Kosina; olaf@aepfle.de; jasowang@redhat.com; linux-
> kernel@vger.kernel.org; James.Bottomley@HansenPartnership.com;
> apw@canonical.com; devel@linuxdriverproject.org; davem@davemloft.net
> Subject: Re: [PATCH 6/6] Drivers: hv: Execute shutdown in a thread context
> 
> On Thu, Jan 24, 2013 at 05:06:27PM +0000, KY Srinivasan wrote:
> >
> >
> > > -----Original Message-----
> > > From: Jiri Kosina [mailto:jkosina@suse.cz]
> > > Sent: Thursday, January 24, 2013 5:10 AM
> > > To: KY Srinivasan
> > > Cc: gregkh@linuxfoundation.org; linux-kernel@vger.kernel.org;
> > > devel@linuxdriverproject.org; olaf@aepfle.de; apw@canonical.com;
> > > jasowang@redhat.com; davem@davemloft.net;
> > > James.Bottomley@HansenPartnership.com
> > > Subject: Re: [PATCH 6/6] Drivers: hv: Execute shutdown in a thread context
> > >
> > > On Wed, 23 Jan 2013, K. Y. Srinivasan wrote:
> > >
> > > > Execute the shutdown code in a thread context. With recent changes made
> to
> > > the
> > > > shutdown code, shutdown code cannot be invoked from an interrupt
> context.
> > > >
> > > > Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
> > > > Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
> > > > ---
> > > >  drivers/hv/hv_util.c |   12 +++++++++++-
> > > >  1 files changed, 11 insertions(+), 1 deletions(-)
> > > >
> > > > diff --git a/drivers/hv/hv_util.c b/drivers/hv/hv_util.c
> > > > index 8b7868a..aceb67f 100644
> > > > --- a/drivers/hv/hv_util.c
> > > > +++ b/drivers/hv/hv_util.c
> > > > @@ -49,6 +49,16 @@ static struct hv_util_service util_kvp = {
> > > >  	.util_deinit = hv_kvp_deinit,
> > > >  };
> > > >
> > > > +static void perform_shutdown(struct work_struct *dummy)
> > > > +{
> > > > +		orderly_poweroff(true);
> > > > +}
> > >
> > > Is there any particular reason for this kind of crazy indentation?
> > I don't know how this extra tab crept through! Greg, if you want I can resend
> > this patch minus the extra tab. Let me know.
> 
> I'll edit it by hand, but someone owes me a beer for it...  :)

I just saw that you closed the tree. Did these patches go in?

Regards,

K. Y
> 
> greg k-h
> 



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH 6/6] Drivers: hv: Execute shutdown in a thread context
  2013-02-09  0:31           ` KY Srinivasan
@ 2013-02-09  0:44             ` gregkh
  2013-02-09  0:55               ` KY Srinivasan
  0 siblings, 1 reply; 19+ messages in thread
From: gregkh @ 2013-02-09  0:44 UTC (permalink / raw)
  To: KY Srinivasan
  Cc: Jiri Kosina, olaf, jasowang, linux-kernel, James.Bottomley, apw,
	devel, davem

On Sat, Feb 09, 2013 at 12:31:49AM +0000, KY Srinivasan wrote:
> 
> 
> > -----Original Message-----
> > From: gregkh@linuxfoundation.org [mailto:gregkh@linuxfoundation.org]
> > Sent: Thursday, January 24, 2013 12:18 PM
> > To: KY Srinivasan
> > Cc: Jiri Kosina; olaf@aepfle.de; jasowang@redhat.com; linux-
> > kernel@vger.kernel.org; James.Bottomley@HansenPartnership.com;
> > apw@canonical.com; devel@linuxdriverproject.org; davem@davemloft.net
> > Subject: Re: [PATCH 6/6] Drivers: hv: Execute shutdown in a thread context
> > 
> > On Thu, Jan 24, 2013 at 05:06:27PM +0000, KY Srinivasan wrote:
> > >
> > >
> > > > -----Original Message-----
> > > > From: Jiri Kosina [mailto:jkosina@suse.cz]
> > > > Sent: Thursday, January 24, 2013 5:10 AM
> > > > To: KY Srinivasan
> > > > Cc: gregkh@linuxfoundation.org; linux-kernel@vger.kernel.org;
> > > > devel@linuxdriverproject.org; olaf@aepfle.de; apw@canonical.com;
> > > > jasowang@redhat.com; davem@davemloft.net;
> > > > James.Bottomley@HansenPartnership.com
> > > > Subject: Re: [PATCH 6/6] Drivers: hv: Execute shutdown in a thread context
> > > >
> > > > On Wed, 23 Jan 2013, K. Y. Srinivasan wrote:
> > > >
> > > > > Execute the shutdown code in a thread context. With recent changes made
> > to
> > > > the
> > > > > shutdown code, shutdown code cannot be invoked from an interrupt
> > context.
> > > > >
> > > > > Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
> > > > > Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
> > > > > ---
> > > > >  drivers/hv/hv_util.c |   12 +++++++++++-
> > > > >  1 files changed, 11 insertions(+), 1 deletions(-)
> > > > >
> > > > > diff --git a/drivers/hv/hv_util.c b/drivers/hv/hv_util.c
> > > > > index 8b7868a..aceb67f 100644
> > > > > --- a/drivers/hv/hv_util.c
> > > > > +++ b/drivers/hv/hv_util.c
> > > > > @@ -49,6 +49,16 @@ static struct hv_util_service util_kvp = {
> > > > >  	.util_deinit = hv_kvp_deinit,
> > > > >  };
> > > > >
> > > > > +static void perform_shutdown(struct work_struct *dummy)
> > > > > +{
> > > > > +		orderly_poweroff(true);
> > > > > +}
> > > >
> > > > Is there any particular reason for this kind of crazy indentation?
> > > I don't know how this extra tab crept through! Greg, if you want I can resend
> > > this patch minus the extra tab. Let me know.
> > 
> > I'll edit it by hand, but someone owes me a beer for it...  :)
> 
> I just saw that you closed the tree. Did these patches go in?

They should have, didn't you get an email saying they were in?  If not,
check my git trees to verify.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 19+ messages in thread

* RE: [PATCH 6/6] Drivers: hv: Execute shutdown in a thread context
  2013-02-09  0:44             ` gregkh
@ 2013-02-09  0:55               ` KY Srinivasan
  0 siblings, 0 replies; 19+ messages in thread
From: KY Srinivasan @ 2013-02-09  0:55 UTC (permalink / raw)
  To: gregkh
  Cc: Jiri Kosina, olaf, jasowang, linux-kernel, James.Bottomley, apw,
	devel, davem



> -----Original Message-----
> From: gregkh@linuxfoundation.org [mailto:gregkh@linuxfoundation.org]
> Sent: Friday, February 08, 2013 7:44 PM
> To: KY Srinivasan
> Cc: Jiri Kosina; olaf@aepfle.de; jasowang@redhat.com; linux-
> kernel@vger.kernel.org; James.Bottomley@HansenPartnership.com;
> apw@canonical.com; devel@linuxdriverproject.org; davem@davemloft.net
> Subject: Re: [PATCH 6/6] Drivers: hv: Execute shutdown in a thread context
> 
> On Sat, Feb 09, 2013 at 12:31:49AM +0000, KY Srinivasan wrote:
> >
> >
> > > -----Original Message-----
> > > From: gregkh@linuxfoundation.org [mailto:gregkh@linuxfoundation.org]
> > > Sent: Thursday, January 24, 2013 12:18 PM
> > > To: KY Srinivasan
> > > Cc: Jiri Kosina; olaf@aepfle.de; jasowang@redhat.com; linux-
> > > kernel@vger.kernel.org; James.Bottomley@HansenPartnership.com;
> > > apw@canonical.com; devel@linuxdriverproject.org; davem@davemloft.net
> > > Subject: Re: [PATCH 6/6] Drivers: hv: Execute shutdown in a thread context
> > >
> > > On Thu, Jan 24, 2013 at 05:06:27PM +0000, KY Srinivasan wrote:
> > > >
> > > >
> > > > > -----Original Message-----
> > > > > From: Jiri Kosina [mailto:jkosina@suse.cz]
> > > > > Sent: Thursday, January 24, 2013 5:10 AM
> > > > > To: KY Srinivasan
> > > > > Cc: gregkh@linuxfoundation.org; linux-kernel@vger.kernel.org;
> > > > > devel@linuxdriverproject.org; olaf@aepfle.de; apw@canonical.com;
> > > > > jasowang@redhat.com; davem@davemloft.net;
> > > > > James.Bottomley@HansenPartnership.com
> > > > > Subject: Re: [PATCH 6/6] Drivers: hv: Execute shutdown in a thread
> context
> > > > >
> > > > > On Wed, 23 Jan 2013, K. Y. Srinivasan wrote:
> > > > >
> > > > > > Execute the shutdown code in a thread context. With recent changes
> made
> > > to
> > > > > the
> > > > > > shutdown code, shutdown code cannot be invoked from an interrupt
> > > context.
> > > > > >
> > > > > > Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
> > > > > > Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
> > > > > > ---
> > > > > >  drivers/hv/hv_util.c |   12 +++++++++++-
> > > > > >  1 files changed, 11 insertions(+), 1 deletions(-)
> > > > > >
> > > > > > diff --git a/drivers/hv/hv_util.c b/drivers/hv/hv_util.c
> > > > > > index 8b7868a..aceb67f 100644
> > > > > > --- a/drivers/hv/hv_util.c
> > > > > > +++ b/drivers/hv/hv_util.c
> > > > > > @@ -49,6 +49,16 @@ static struct hv_util_service util_kvp = {
> > > > > >  	.util_deinit = hv_kvp_deinit,
> > > > > >  };
> > > > > >
> > > > > > +static void perform_shutdown(struct work_struct *dummy)
> > > > > > +{
> > > > > > +		orderly_poweroff(true);
> > > > > > +}
> > > > >
> > > > > Is there any particular reason for this kind of crazy indentation?
> > > > I don't know how this extra tab crept through! Greg, if you want I can
> resend
> > > > this patch minus the extra tab. Let me know.
> > >
> > > I'll edit it by hand, but someone owes me a beer for it...  :)
> >
> > I just saw that you closed the tree. Did these patches go in?
> 
> They should have, didn't you get an email saying they were in?  If not,
> check my git trees to verify.

They have gone in; thanks. I have been having mail problems and had not
received the check-in email.

Regards,

K. Y
 



^ permalink raw reply	[flat|nested] 19+ messages in thread

* RE: [PATCH 6/6] Drivers: hv: Execute shutdown in a thread context
  2013-01-24 17:17         ` gregkh
  2013-01-24 17:23           ` KY Srinivasan
  2013-02-09  0:31           ` KY Srinivasan
@ 2013-03-01 15:15           ` KY Srinivasan
  2013-03-01 16:11             ` gregkh
  2 siblings, 1 reply; 19+ messages in thread
From: KY Srinivasan @ 2013-03-01 15:15 UTC (permalink / raw)
  To: gregkh
  Cc: Jiri Kosina, olaf, jasowang, linux-kernel, James.Bottomley, apw,
	devel, davem



> -----Original Message-----
> From: gregkh@linuxfoundation.org [mailto:gregkh@linuxfoundation.org]
> Sent: Thursday, January 24, 2013 12:18 PM
> To: KY Srinivasan
> Cc: Jiri Kosina; olaf@aepfle.de; jasowang@redhat.com; linux-
> kernel@vger.kernel.org; James.Bottomley@HansenPartnership.com;
> apw@canonical.com; devel@linuxdriverproject.org; davem@davemloft.net
> Subject: Re: [PATCH 6/6] Drivers: hv: Execute shutdown in a thread context
> 
> On Thu, Jan 24, 2013 at 05:06:27PM +0000, KY Srinivasan wrote:
> >
> >
> > > -----Original Message-----
> > > From: Jiri Kosina [mailto:jkosina@suse.cz]
> > > Sent: Thursday, January 24, 2013 5:10 AM
> > > To: KY Srinivasan
> > > Cc: gregkh@linuxfoundation.org; linux-kernel@vger.kernel.org;
> > > devel@linuxdriverproject.org; olaf@aepfle.de; apw@canonical.com;
> > > jasowang@redhat.com; davem@davemloft.net;
> > > James.Bottomley@HansenPartnership.com
> > > Subject: Re: [PATCH 6/6] Drivers: hv: Execute shutdown in a thread context
> > >
> > > On Wed, 23 Jan 2013, K. Y. Srinivasan wrote:
> > >
> > > > Execute the shutdown code in a thread context. With recent changes made
> to
> > > the
> > > > shutdown code, shutdown code cannot be invoked from an interrupt
> context.
> > > >
> > > > Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
> > > > Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
> > > > ---
> > > >  drivers/hv/hv_util.c |   12 +++++++++++-
> > > >  1 files changed, 11 insertions(+), 1 deletions(-)
> > > >
> > > > diff --git a/drivers/hv/hv_util.c b/drivers/hv/hv_util.c
> > > > index 8b7868a..aceb67f 100644
> > > > --- a/drivers/hv/hv_util.c
> > > > +++ b/drivers/hv/hv_util.c
> > > > @@ -49,6 +49,16 @@ static struct hv_util_service util_kvp = {
> > > >  	.util_deinit = hv_kvp_deinit,
> > > >  };
> > > >
> > > > +static void perform_shutdown(struct work_struct *dummy)
> > > > +{
> > > > +		orderly_poweroff(true);
> > > > +}
> > >
> > > Is there any particular reason for this kind of crazy indentation?
> > I don't know how this extra tab crept through! Greg, if you want I can resend
> > this patch minus the extra tab. Let me know.
> 
> I'll edit it by hand, but someone owes me a beer for it...  :)

Greg,

You have already applied this. There has been some customer request for getting this
patch into 3.7 (3.7 is where the Hyper-V shutdown code ceased to work because of 
some other patches unrelated to Hyper-V that went in). What is the process for requesting
that this patch be applied all the way back to 3.7.

Regards,

K. Y
> 
> greg k-h
> 



^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [PATCH 6/6] Drivers: hv: Execute shutdown in a thread context
  2013-03-01 15:15           ` KY Srinivasan
@ 2013-03-01 16:11             ` gregkh
  2013-03-01 18:40               ` KY Srinivasan
  0 siblings, 1 reply; 19+ messages in thread
From: gregkh @ 2013-03-01 16:11 UTC (permalink / raw)
  To: KY Srinivasan
  Cc: olaf, Jiri Kosina, jasowang, linux-kernel, James.Bottomley, apw,
	devel, davem

On Fri, Mar 01, 2013 at 03:15:58PM +0000, KY Srinivasan wrote:
> > > > > Execute the shutdown code in a thread context. With recent changes made
> > > > the
> > > > > shutdown code, shutdown code cannot be invoked from an interrupt
> > context.
> > > > >
> > > > > Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
> > > > > Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
> > > > > ---
> > > > >  drivers/hv/hv_util.c |   12 +++++++++++-
> > > > >  1 files changed, 11 insertions(+), 1 deletions(-)
> > > > >
> > > > > diff --git a/drivers/hv/hv_util.c b/drivers/hv/hv_util.c
> > > > > index 8b7868a..aceb67f 100644
> > > > > --- a/drivers/hv/hv_util.c
> > > > > +++ b/drivers/hv/hv_util.c
> > > > > @@ -49,6 +49,16 @@ static struct hv_util_service util_kvp = {
> > > > >  	.util_deinit = hv_kvp_deinit,
> > > > >  };
> > > > >
> > > > > +static void perform_shutdown(struct work_struct *dummy)
> > > > > +{
> > > > > +		orderly_poweroff(true);
> > > > > +}
> > > >
> > > > Is there any particular reason for this kind of crazy indentation?
> > > I don't know how this extra tab crept through! Greg, if you want I can resend
> > > this patch minus the extra tab. Let me know.
> > 
> > I'll edit it by hand, but someone owes me a beer for it...  :)
> 
> Greg,
> 
> You have already applied this. There has been some customer request for getting this
> patch into 3.7 (3.7 is where the Hyper-V shutdown code ceased to work because of 
> some other patches unrelated to Hyper-V that went in). What is the process for requesting
> that this patch be applied all the way back to 3.7.

You have read the file, Documentation/stable_kernel_rules.txt, right?

But please remember, the 3.7 kernel is now end-of-life, as of the 3.7.10
kernel release, so even if this was a bug fix that was applicable to
stable kernels, it would be impossible to get it into the 3.7.y
releases, without going back in time.

sorry,

greg k-h

^ permalink raw reply	[flat|nested] 19+ messages in thread

* RE: [PATCH 6/6] Drivers: hv: Execute shutdown in a thread context
  2013-03-01 16:11             ` gregkh
@ 2013-03-01 18:40               ` KY Srinivasan
  0 siblings, 0 replies; 19+ messages in thread
From: KY Srinivasan @ 2013-03-01 18:40 UTC (permalink / raw)
  To: gregkh
  Cc: olaf, Jiri Kosina, jasowang, linux-kernel, James.Bottomley, apw,
	devel, davem



> -----Original Message-----
> From: gregkh@linuxfoundation.org [mailto:gregkh@linuxfoundation.org]
> Sent: Friday, March 01, 2013 11:11 AM
> To: KY Srinivasan
> Cc: olaf@aepfle.de; Jiri Kosina; jasowang@redhat.com; linux-
> kernel@vger.kernel.org; James.Bottomley@HansenPartnership.com;
> apw@canonical.com; devel@linuxdriverproject.org; davem@davemloft.net
> Subject: Re: [PATCH 6/6] Drivers: hv: Execute shutdown in a thread context
> 
> On Fri, Mar 01, 2013 at 03:15:58PM +0000, KY Srinivasan wrote:
> > > > > > Execute the shutdown code in a thread context. With recent changes
> made
> > > > > the
> > > > > > shutdown code, shutdown code cannot be invoked from an interrupt
> > > context.
> > > > > >
> > > > > > Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
> > > > > > Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
> > > > > > ---
> > > > > >  drivers/hv/hv_util.c |   12 +++++++++++-
> > > > > >  1 files changed, 11 insertions(+), 1 deletions(-)
> > > > > >
> > > > > > diff --git a/drivers/hv/hv_util.c b/drivers/hv/hv_util.c
> > > > > > index 8b7868a..aceb67f 100644
> > > > > > --- a/drivers/hv/hv_util.c
> > > > > > +++ b/drivers/hv/hv_util.c
> > > > > > @@ -49,6 +49,16 @@ static struct hv_util_service util_kvp = {
> > > > > >  	.util_deinit = hv_kvp_deinit,
> > > > > >  };
> > > > > >
> > > > > > +static void perform_shutdown(struct work_struct *dummy)
> > > > > > +{
> > > > > > +		orderly_poweroff(true);
> > > > > > +}
> > > > >
> > > > > Is there any particular reason for this kind of crazy indentation?
> > > > I don't know how this extra tab crept through! Greg, if you want I can
> resend
> > > > this patch minus the extra tab. Let me know.
> > >
> > > I'll edit it by hand, but someone owes me a beer for it...  :)
> >
> > Greg,
> >
> > You have already applied this. There has been some customer request for
> getting this
> > patch into 3.7 (3.7 is where the Hyper-V shutdown code ceased to work
> because of
> > some other patches unrelated to Hyper-V that went in). What is the process for
> requesting
> > that this patch be applied all the way back to 3.7.
> 
> You have read the file, Documentation/stable_kernel_rules.txt, right?
> 
> But please remember, the 3.7 kernel is now end-of-life, as of the 3.7.10
> kernel release, so even if this was a bug fix that was applicable to
> stable kernels, it would be impossible to get it into the 3.7.y
> releases, without going back in time.

Thanks Greg.

K. Y
> 
> sorry,
> 
> greg k-h
> 



^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2013-03-01 18:47 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-24  1:42 [PATCH 0/6] Drivers: hv: Consolidate GUID definitions K. Y. Srinivasan
2013-01-24  1:42 ` [PATCH 1/6] Drivers: hv: vmbus: Consolidate all offer GUID definitions in hyperv.h K. Y. Srinivasan
2013-01-24  1:42   ` [PATCH 2/6] Drivers: hv: Use consolidated GUID definitions K. Y. Srinivasan
2013-01-24  1:42   ` [PATCH 3/6] Drivers: net: hyperv: Use the consolidated GUID definition K. Y. Srinivasan
2013-01-24  1:42   ` [PATCH 4/6] Drivers: scsi: storvsc: " K. Y. Srinivasan
2013-01-24  1:42   ` [PATCH 5/6] Drivers: hid: hid-hyperv: Use consolidated GUID definitions K. Y. Srinivasan
2013-01-24 10:11     ` Jiri Kosina
2013-01-24 14:51       ` Greg KH
2013-01-24  1:42   ` [PATCH 6/6] Drivers: hv: Execute shutdown in a thread context K. Y. Srinivasan
2013-01-24 10:09     ` Jiri Kosina
2013-01-24 17:06       ` KY Srinivasan
2013-01-24 17:17         ` gregkh
2013-01-24 17:23           ` KY Srinivasan
2013-02-09  0:31           ` KY Srinivasan
2013-02-09  0:44             ` gregkh
2013-02-09  0:55               ` KY Srinivasan
2013-03-01 15:15           ` KY Srinivasan
2013-03-01 16:11             ` gregkh
2013-03-01 18:40               ` KY Srinivasan

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).