All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH 1/1] staging: hv: Add support for >2 TB LUN in storage driver.
  2011-09-01 21:11 [PATCH 1/1] staging: hv: Add support for >2 TB LUN in storage driver Mike Sterling
@ 2011-09-01 20:59 ` Greg KH
  0 siblings, 0 replies; 9+ messages in thread
From: Greg KH @ 2011-09-01 20:59 UTC (permalink / raw)
  To: Mike Sterling
  Cc: devel, virtualization, linux-kernel, Mike Sterling,
	K.Y. Srinivasan, Haiyang Zhang

On Thu, Sep 01, 2011 at 02:11:52PM -0700, Mike Sterling wrote:
> If a LUN larger than 2 TB is attached to a Linux VM on Hyper-V, we currently 
> report a maximum size of 2 TB. This patch resolves the issue in hv_storvsc. 
> Thanks to Robert Scheck <robert.scheck@etes.de> for reporting the issue.
> 
> Signed-off-by: Mike Sterling <mike.sterling@microsoft.com>

As I'm guessing you want this to show up as being done by
mike.sterling@microsoft.com and not steelforce@gmail.com, can you please
resend this from your mike.sterling@microsoft.com account, or put the
proper "From:" line in the patch body as described in the file,
Documentation/SubmittingPatches so I can apply it correctly?

Also, please use the proper "Reported-by:" tag for the bug reporter.

Please resend.

greg k-h

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

* [PATCH 1/1] staging: hv: Add support for >2 TB LUN in storage driver.
@ 2011-09-01 21:11 Mike Sterling
  2011-09-01 20:59 ` Greg KH
  0 siblings, 1 reply; 9+ messages in thread
From: Mike Sterling @ 2011-09-01 21:11 UTC (permalink / raw)
  To: devel, virtualization, gregkh, linux-kernel
  Cc: Mike Sterling, K.Y. Srinivasan, Haiyang Zhang

If a LUN larger than 2 TB is attached to a Linux VM on Hyper-V, we currently 
report a maximum size of 2 TB. This patch resolves the issue in hv_storvsc. 
Thanks to Robert Scheck <robert.scheck@etes.de> for reporting the issue.

Signed-off-by: Mike Sterling <mike.sterling@microsoft.com>
Signed-off-by: K.Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
---
 drivers/staging/hv/hyperv_storage.h |    1 +
 drivers/staging/hv/storvsc_drv.c    |    2 ++
 2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/staging/hv/hyperv_storage.h b/drivers/staging/hv/hyperv_storage.h
index a01f9a0..5af82f4 100644
--- a/drivers/staging/hv/hyperv_storage.h
+++ b/drivers/staging/hv/hyperv_storage.h
@@ -218,6 +218,7 @@ struct vstor_packet {
 #define STORVSC_MAX_LUNS_PER_TARGET			64
 #define STORVSC_MAX_TARGETS				1
 #define STORVSC_MAX_CHANNELS				1
+#define STORVSC_MAX_CMD_LEN				16
 
 struct hv_storvsc_request;
 
diff --git a/drivers/staging/hv/storvsc_drv.c b/drivers/staging/hv/storvsc_drv.c
index 7effaf3..26983ac 100644
--- a/drivers/staging/hv/storvsc_drv.c
+++ b/drivers/staging/hv/storvsc_drv.c
@@ -701,6 +701,8 @@ static int storvsc_probe(struct hv_device *device)
 	host->max_id = STORVSC_MAX_TARGETS;
 	/* max # of channels */
 	host->max_channel = STORVSC_MAX_CHANNELS - 1;
+	/* max cmd length */
+	host->max_cmd_len = STORVSC_MAX_CMD_LEN;
 
 	/* Register the HBA and start the scsi bus scan */
 	ret = scsi_add_host(host, &device->device);
-- 
1.7.1


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

* [PATCH 1/1] Staging: hv: Add support for >2 TB LUN in storage driver.
@ 2011-09-06 23:10 Mike Sterling
  0 siblings, 0 replies; 9+ messages in thread
From: Mike Sterling @ 2011-09-06 23:10 UTC (permalink / raw)
  To: haiyangz, hjanssen, kys, gregkh, linux-kernel, devel, virtualization
  Cc: Mike Sterling

From: Mike Sterling <mike.sterling@microsoft.com> 

If a LUN larger than 2 TB is attached to a Linux VM on Hyper-V, we currently
report a maximum size of 2 TB. This patch resolves the issue in hv_storvsc.
Thanks to Robert Scheck <robert.scheck@etes.de> for reporting the issue.

Reported-by: Robert Scheck <robert.scheck@etes.de>
Signed-off-by: Mike Sterling <mike.sterling@microsoft.com>
Signed-off-by: K.Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
---
 drivers/staging/hv/storvsc_drv.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/staging/hv/storvsc_drv.c b/drivers/staging/hv/storvsc_drv.c
index 3686d10..b0c4e56 100644
--- a/drivers/staging/hv/storvsc_drv.c
+++ b/drivers/staging/hv/storvsc_drv.c
@@ -232,6 +232,7 @@ struct vstor_packet {
 #define STORVSC_MAX_LUNS_PER_TARGET			64
 #define STORVSC_MAX_TARGETS				1
 #define STORVSC_MAX_CHANNELS				1
+#define STORVSC_MAX_CMD_LEN				16
 
 struct hv_storvsc_request;
 
@@ -1440,6 +1441,8 @@ static int storvsc_probe(struct hv_device *device)
 	host->max_id = STORVSC_MAX_TARGETS;
 	/* max # of channels */
 	host->max_channel = STORVSC_MAX_CHANNELS - 1;
+	/* max cmd length */
+	host->max_cmd_len = STORVSC_MAX_CMD_LEN;
 
 	/* Register the HBA and start the scsi bus scan */
 	ret = scsi_add_host(host, &device->device);
-- 
1.7.4.1


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

* RE: [PATCH 1/1] staging: hv: Add support for >2 TB LUN in storage driver.
  2011-09-06 19:06 ` Greg KH
@ 2011-09-06 19:14     ` Mike Sterling
  0 siblings, 0 replies; 9+ messages in thread
From: Mike Sterling @ 2011-09-06 19:14 UTC (permalink / raw)
  To: Greg KH
  Cc: Haiyang Zhang, Hank Janssen, KY Srinivasan, gregkh, linux-kernel,
	devel, virtualization

On Tuesday, September 06, 2011 12:06 PM, Greg KH wrote:
>On Thu, Sep 01, 2011 at 03:11:09PM -0700, Mike Sterling wrote:
>> If a LUN larger than 2 TB is attached to a Linux VM on Hyper-V, we 
>> currently report a maximum size of 2 TB. This patch resolves the issue in hv_storvsc.
>> Thanks to Robert Scheck <robert.scheck@etes.de> for reporting the issue.
>> 
>> Reported-by: Robert Scheck <robert.scheck@etes.de>
>> Signed-off-by: Mike Sterling <mike.sterling@microsoft.com>
>> Signed-off-by: K.Y. Srinivasan <kys@microsoft.com>
>> Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
>> ---
>>  drivers/staging/hv/hyperv_storage.h |    1 +
>
>This file is no longer in the latest kernel tree (linux-next or staging-next).  What tree did you generate this patch against?  And >how come Haiyang and KY didn't catch such a basic mistake in their review...
>
>I'm guessing that this patch was not even tested :(
>
>Please fix this and resend.

Greg,

This patch was reviewed by both Ky and Haiyang. However, it looks like I built the patch against an older tree that didn't have Ky's changes. The "how" is still unclear, even after reviewing my steps with Ky. I've discussed this with Ky, I'm rebuilding the patch today, and will resubmit once we confirm.

-Mike

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

* RE: [PATCH 1/1] staging: hv: Add support for >2 TB LUN in storage driver.
@ 2011-09-06 19:14     ` Mike Sterling
  0 siblings, 0 replies; 9+ messages in thread
From: Mike Sterling @ 2011-09-06 19:14 UTC (permalink / raw)
  To: Greg KH; +Cc: Haiyang Zhang, gregkh, linux-kernel, virtualization, devel

On Tuesday, September 06, 2011 12:06 PM, Greg KH wrote:
>On Thu, Sep 01, 2011 at 03:11:09PM -0700, Mike Sterling wrote:
>> If a LUN larger than 2 TB is attached to a Linux VM on Hyper-V, we 
>> currently report a maximum size of 2 TB. This patch resolves the issue in hv_storvsc.
>> Thanks to Robert Scheck <robert.scheck@etes.de> for reporting the issue.
>> 
>> Reported-by: Robert Scheck <robert.scheck@etes.de>
>> Signed-off-by: Mike Sterling <mike.sterling@microsoft.com>
>> Signed-off-by: K.Y. Srinivasan <kys@microsoft.com>
>> Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
>> ---
>>  drivers/staging/hv/hyperv_storage.h |    1 +
>
>This file is no longer in the latest kernel tree (linux-next or staging-next).  What tree did you generate this patch against?  And >how come Haiyang and KY didn't catch such a basic mistake in their review...
>
>I'm guessing that this patch was not even tested :(
>
>Please fix this and resend.

Greg,

This patch was reviewed by both Ky and Haiyang. However, it looks like I built the patch against an older tree that didn't have Ky's changes. The "how" is still unclear, even after reviewing my steps with Ky. I've discussed this with Ky, I'm rebuilding the patch today, and will resubmit once we confirm.

-Mike

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

* Re: [PATCH 1/1] staging: hv: Add support for >2 TB LUN in storage driver.
  2011-09-01 22:11 Mike Sterling
  2011-09-01 22:22 ` Greg KH
@ 2011-09-06 19:06 ` Greg KH
  2011-09-06 19:14     ` Mike Sterling
  1 sibling, 1 reply; 9+ messages in thread
From: Greg KH @ 2011-09-06 19:06 UTC (permalink / raw)
  To: Mike Sterling
  Cc: haiyangz, hjanssen, kys, gregkh, linux-kernel, devel, virtualization

On Thu, Sep 01, 2011 at 03:11:09PM -0700, Mike Sterling wrote:
> If a LUN larger than 2 TB is attached to a Linux VM on Hyper-V, we currently 
> report a maximum size of 2 TB. This patch resolves the issue in hv_storvsc. 
> Thanks to Robert Scheck <robert.scheck@etes.de> for reporting the issue.
> 
> Reported-by: Robert Scheck <robert.scheck@etes.de>
> Signed-off-by: Mike Sterling <mike.sterling@microsoft.com>
> Signed-off-by: K.Y. Srinivasan <kys@microsoft.com>
> Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
> ---
>  drivers/staging/hv/hyperv_storage.h |    1 +

This file is no longer in the latest kernel tree (linux-next or
staging-next).  What tree did you generate this patch against?  And
how come Haiyang and KY didn't catch such a basic mistake in their
review...

I'm guessing that this patch was not even tested :(

Please fix this and resend.

greg k-h

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

* RE: [PATCH 1/1] staging: hv: Add support for >2 TB LUN in storage driver.
  2011-09-01 22:22 ` Greg KH
@ 2011-09-06 15:33   ` Mike Sterling
  0 siblings, 0 replies; 9+ messages in thread
From: Mike Sterling @ 2011-09-06 15:33 UTC (permalink / raw)
  To: Greg KH
  Cc: Haiyang Zhang, Hank Janssen, KY Srinivasan, linux-kernel, devel,
	virtualization

On Thu, Sep 1, 2011 at 03:22:00PM +0800, Greg KH wrote:
>On Thu, Sep 01, 2011 at 03:11:09PM -0700, Mike Sterling wrote:
>> If a LUN larger than 2 TB is attached to a Linux VM on Hyper-V, we 
>> currently report a maximum size of 2 TB. This patch resolves the issue in hv_storvsc.
>> Thanks to Robert Scheck <robert.scheck@etes.de> for reporting the issue.
>> 
>> Reported-by: Robert Scheck <robert.scheck@etes.de>
>> Signed-off-by: Mike Sterling <mike.sterling@microsoft.com>
>> Signed-off-by: K.Y. Srinivasan <kys@microsoft.com>
>> Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
>
>Much better, thanks.
>
>Is this something that needs to go to older kernels (3.0, 2.6.32, etc.) as well?

I discussed this with Ky. Given the changes that have taken place with the hv_* code, it's unlikely that this patch would just work with downlevel kernels. I'll need to create separate patches for those kernels.

-Mike

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

* Re: [PATCH 1/1] staging: hv: Add support for >2 TB LUN in storage driver.
  2011-09-01 22:11 Mike Sterling
@ 2011-09-01 22:22 ` Greg KH
  2011-09-06 15:33   ` Mike Sterling
  2011-09-06 19:06 ` Greg KH
  1 sibling, 1 reply; 9+ messages in thread
From: Greg KH @ 2011-09-01 22:22 UTC (permalink / raw)
  To: Mike Sterling
  Cc: haiyangz, hjanssen, kys, linux-kernel, devel, virtualization

On Thu, Sep 01, 2011 at 03:11:09PM -0700, Mike Sterling wrote:
> If a LUN larger than 2 TB is attached to a Linux VM on Hyper-V, we currently 
> report a maximum size of 2 TB. This patch resolves the issue in hv_storvsc. 
> Thanks to Robert Scheck <robert.scheck@etes.de> for reporting the issue.
> 
> Reported-by: Robert Scheck <robert.scheck@etes.de>
> Signed-off-by: Mike Sterling <mike.sterling@microsoft.com>
> Signed-off-by: K.Y. Srinivasan <kys@microsoft.com>
> Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>

Much better, thanks.

Is this something that needs to go to older kernels (3.0, 2.6.32, etc.)
as well?

greg k-h

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

* [PATCH 1/1] staging: hv: Add support for >2 TB LUN in storage driver.
@ 2011-09-01 22:11 Mike Sterling
  2011-09-01 22:22 ` Greg KH
  2011-09-06 19:06 ` Greg KH
  0 siblings, 2 replies; 9+ messages in thread
From: Mike Sterling @ 2011-09-01 22:11 UTC (permalink / raw)
  To: haiyangz, hjanssen, kys, gregkh, linux-kernel, devel, virtualization
  Cc: Mike Sterling

If a LUN larger than 2 TB is attached to a Linux VM on Hyper-V, we currently 
report a maximum size of 2 TB. This patch resolves the issue in hv_storvsc. 
Thanks to Robert Scheck <robert.scheck@etes.de> for reporting the issue.

Reported-by: Robert Scheck <robert.scheck@etes.de>
Signed-off-by: Mike Sterling <mike.sterling@microsoft.com>
Signed-off-by: K.Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
---
 drivers/staging/hv/hyperv_storage.h |    1 +
 drivers/staging/hv/storvsc_drv.c    |    2 ++
 2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/staging/hv/hyperv_storage.h b/drivers/staging/hv/hyperv_storage.h
index a01f9a0..5af82f4 100644
--- a/drivers/staging/hv/hyperv_storage.h
+++ b/drivers/staging/hv/hyperv_storage.h
@@ -218,6 +218,7 @@ struct vstor_packet {
 #define STORVSC_MAX_LUNS_PER_TARGET			64
 #define STORVSC_MAX_TARGETS				1
 #define STORVSC_MAX_CHANNELS				1
+#define STORVSC_MAX_CMD_LEN				16
 
 struct hv_storvsc_request;
 
diff --git a/drivers/staging/hv/storvsc_drv.c b/drivers/staging/hv/storvsc_drv.c
index 7effaf3..26983ac 100644
--- a/drivers/staging/hv/storvsc_drv.c
+++ b/drivers/staging/hv/storvsc_drv.c
@@ -701,6 +701,8 @@ static int storvsc_probe(struct hv_device *device)
 	host->max_id = STORVSC_MAX_TARGETS;
 	/* max # of channels */
 	host->max_channel = STORVSC_MAX_CHANNELS - 1;
+	/* max cmd length */
+	host->max_cmd_len = STORVSC_MAX_CMD_LEN;
 
 	/* Register the HBA and start the scsi bus scan */
 	ret = scsi_add_host(host, &device->device);
-- 
1.7.1


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

end of thread, other threads:[~2011-09-06 22:50 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-01 21:11 [PATCH 1/1] staging: hv: Add support for >2 TB LUN in storage driver Mike Sterling
2011-09-01 20:59 ` Greg KH
2011-09-01 22:11 Mike Sterling
2011-09-01 22:22 ` Greg KH
2011-09-06 15:33   ` Mike Sterling
2011-09-06 19:06 ` Greg KH
2011-09-06 19:14   ` Mike Sterling
2011-09-06 19:14     ` Mike Sterling
2011-09-06 23:10 [PATCH 1/1] Staging: " Mike Sterling

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.