Skip to contentSkip to conversation

Staging: hv: storvsc: Move the storage driver out of the staging area

PATCH In review K. Y. Srinivasan 4 participants 16 messages Jan 12, 2012 – Jan 26, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: hv: storvsc: Move the storage driver out of the staging area

The storage driver (storvsc_drv.c) handles all block storage devices assigned to Linux guests hosted on Hyper-V. This driver has been in the staging tree for a while and this patch moves it out of the staging area. As per Greg's recommendation, this patch makes no changes to the staging/hv directory. Once the driver moves out of staging, we will cleanup the staging/hv directory.

This patch includes all the patches that I have sent against the staging/hv tree to address the comments I have gotten to date on this storage driver.

---
 drivers/scsi/Kconfig       |    7 +
 drivers/scsi/Makefile      |    3 +
 drivers/scsi/storvsc_drv.c | 1548 ++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 1558 insertions(+), 0 deletions(-)
 create mode 100644 drivers/scsi/storvsc_drv.c
drivers/scsi/Kconfig +7 -0
index 06ea3bc..4910269 100644
@@ -662,6 +662,13 @@ config VMWARE_PVSCSI
 	  To compile this driver as a module, choose M here: the
 	  module will be called vmw_pvscsi.
 
+config HYPERV_STORAGE
+	tristate "Microsoft Hyper-V virtual storage driver"
+	depends on SCSI && HYPERV
+	default HYPERV
+	help
+	  Select this option to enable the Hyper-V virtual storage driver.
+
 config LIBFC
 	tristate "LibFC module"
 	select SCSI_FC_ATTRS
drivers/scsi/Makefile +3 -0
index 2b88749..e4c1a69 100644
@@ -142,6 +142,7 @@ obj-$(CONFIG_SCSI_BNX2_ISCSI)	+= libiscsi.o bnx2i/
 obj-$(CONFIG_BE2ISCSI)		+= libiscsi.o be2iscsi/
 obj-$(CONFIG_SCSI_PMCRAID)	+= pmcraid.o
 obj-$(CONFIG_VMWARE_PVSCSI)	+= vmw_pvscsi.o
+obj-$(CONFIG_HYPERV_STORAGE)	+= hv_storvsc.o
 
 obj-$(CONFIG_ARM)		+= arm/
 
@@ -170,6 +171,8 @@ scsi_mod-$(CONFIG_SCSI_PROC_FS)	+= scsi_proc.o
 scsi_mod-y			+= scsi_trace.o
 scsi_mod-$(CONFIG_PM)		+= scsi_pm.o
 
+hv_storvsc-y			:= storvsc_drv.o
+
 scsi_tgt-y			+= scsi_tgt_lib.o scsi_tgt_if.o
 
 sd_mod-objs	:= sd.o
drivers/scsi/storvsc_drv.c new file +1548 -0

1,548 lines not on this page · raw message

Signature · 1 line
1.7.4.1
#2 lore raw

Thanks Christoph. Would you be taking this driver out of staging or should I ask Greg. James had indicated that he had turned the driver over to you for reviewing.

Regards,

K. Y

Quoted 13 lines

-----Original Message-----
From: Christoph Hellwig [mailto:[email protected]]
Sent: Saturday, January 14, 2012 11:42 AM
To: KY Srinivasan
Cc: [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH 1/1] Staging: hv: storvsc: Move the storage driver out of the staging area

The driver looks good to go to me, thanks for quickly addressing the comments.

#3 lore raw
Quoted 2 lines · KY Srinivasan

Thanks Christoph. Would you be taking this driver out of staging or should I ask Greg. James had indicated that he had turned the driver over to you for reviewing.

In the end James still maintains the SCSI tree and send on all drivers. The only thing I can do is give a positive review.

#4 lore raw

Thanks Christoph.

Regards,

K. Y

Quoted 16 lines

-----Original Message-----
From: Christoph Hellwig [mailto:[email protected]]
Sent: Monday, January 16, 2012 10:30 AM
To: KY Srinivasan
Cc: Christoph Hellwig; [email protected]; [email protected]; linux- [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH 1/1] Staging: hv: storvsc: Move the storage driver out of the staging area

Quoted 1 line · KY Srinivasan

Thanks Christoph. Would you be taking this driver out of staging or should I ask

Greg. James had indicated that

Quoted 1 line

he had turned the driver over to you for reviewing.

In the end James still maintains the SCSI tree and send on all drivers. The only thing I can do is give a positive review.

#5 lore raw
In reply to Christoph Hellwig
Quoted 11 lines

-----Original Message-----
From: Christoph Hellwig [mailto:[email protected]]
Sent: Monday, January 16, 2012 10:30 AM
To: KY Srinivasan
Cc: Christoph Hellwig; [email protected]; [email protected]; linux- [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH 1/1] Staging: hv: storvsc: Move the storage driver out of the staging area

Quoted 7 lines
Quoted 1 line · KY Srinivasan

Thanks Christoph. Would you be taking this driver out of staging or should I ask

Greg. James had indicated that

Quoted 1 line

he had turned the driver over to you for reviewing.

In the end James still maintains the SCSI tree and send on all drivers. The only thing I can do is give a positive review.

James,

Let me know if there is something else you want me to address in this driver before it can exit staging.

Regards,

K. Y

#6 lore raw
In reply to Christoph Hellwig
Quoted 11 lines

-----Original Message-----
From: Christoph Hellwig [mailto:[email protected]]
Sent: Monday, January 16, 2012 10:30 AM
To: KY Srinivasan
Cc: Christoph Hellwig; [email protected]; [email protected]; linux- [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH 1/1] Staging: hv: storvsc: Move the storage driver out of the staging area

Quoted 7 lines
Quoted 1 line · KY Srinivasan

Thanks Christoph. Would you be taking this driver out of staging or should I ask

Greg. James had indicated that

Quoted 1 line

he had turned the driver over to you for reviewing.

In the end James still maintains the SCSI tree and send on all drivers. The only thing I can do is give a positive review.

James,
Any updates here?

Regards,

K. Y

#7 lore raw
Quoted 2 lines · KY Srinivasan

James,
Any updates here?

Given that this is a new driver without external dependencies it seems fine even for a 3.3 merge to me.

#8 lore raw
Quoted 6 lines · Christoph Hellwig
Quoted 2 lines · KY Srinivasan

James,
Any updates here?

Given that this is a new driver without external dependencies it seems fine even for a 3.3 merge to me.

Fine with me as well.

#9 lore raw
Quoted 9 lines · Greg KH
Quoted 6 lines · Christoph Hellwig
Quoted 2 lines · KY Srinivasan

James,
Any updates here?

Given that this is a new driver without external dependencies it seems fine even for a 3.3 merge to me.

Fine with me as well.

OK, so what I need to linux-scsi is an applyable patch moving it out of staging.

James

���{.n�+�������+%�����ݶ��w��{.n�+����{��G�����{ay�ʇڙ�,j��f���h��������z_�(�階�ݢj"���m������G������?����&���~��iO��z��v�^�m���� ������?�I�

#10 lore raw
Quoted 6 lines · James Bottomley
Quoted 5 lines · Greg KH
Quoted 4 lines · Christoph Hellwig
Quoted 2 lines · KY Srinivasan

James,
Any updates here?

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

Given that this is a new driver without external dependencies it seems fine even for a 3.3 merge to me.

Fine with me as well.

OK, so what I need to linux-scsi is an applyable patch moving it out of staging.

I think there have been about 3-4 copies of this in your email archives, but if that didn't work, I'm sure that KY can create it again :)

thanks,

greg k-h

#11 lore raw
Quoted 10 lines · Greg KH
Quoted 9 lines · James Bottomley
Quoted 8 lines · Greg KH
Quoted 6 lines · Christoph Hellwig
Quoted 2 lines · KY Srinivasan

James,
Any updates here?

Given that this is a new driver without external dependencies it seems fine even for a 3.3 merge to me.

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

Fine with me as well.

OK, so what I need to linux-scsi is an applyable patch moving it out of staging.

I think there have been about 3-4 copies of this in your email archives, but if that didn't work, I'm sure that KY can create it again :)

Actually, no ... I've got a patch adding it to staging. What I need to add it in -rc is the motion piece (remove from staging and add to SCSI) so that git doesn't say I'm trying to add 1600 lines during rc but am just quietly moving a file ...

James

���{.n�+�������+%�����ݶ��w��{.n�+����{��G�����{ay�ʇڙ�,j��f���h��������z_�(�階�ݢj"���m������G������?����&���~��iO��z��v�^�m���� ������?�I�

#12 lore raw
Quoted 27 lines

-----Original Message-----
From: James Bottomley [mailto:[email protected]]
Sent: Wednesday, January 25, 2012 12:12 PM
To: Greg KH
Cc: Christoph Hellwig; KY Srinivasan; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH 1/1] Staging: hv: storvsc: Move the storage driver out of the staging area

Quoted 15 lines · Greg KH
Quoted 13 lines · James Bottomley
Quoted 9 lines · Greg KH
Quoted 6 lines · Christoph Hellwig
Quoted 2 lines · KY Srinivasan

James,
Any updates here?

Given that this is a new driver without external dependencies it seems fine even for a 3.3 merge to me.

Fine with me as well.

OK, so what I need to linux-scsi is an applyable patch moving it out of staging.

Quoted 7 lines
Quoted 2 lines

I think there have been about 3-4 copies of this in your email archives, but if that didn't work, I'm sure that KY can create it again :)

Actually, no ... I've got a patch adding it to staging. What I need to add it in -rc is the motion piece (remove from staging and add to SCSI) so that git doesn't say I'm trying to add 1600 lines during rc but am just quietly moving a file ...

I will send this out soon.

Regards,

K. Y

Quoted 2 lines

James

���{.n�+�������+%�����ݶ��w��{.n�+����{��G�����{ay�ʇڙ�,j��f���h��������z_�(�階�ݢj"���m������G������?����&���~��iO��z��v�^�m���� ������?�I�

#13 lore raw
In reply to James Bottomley
Quoted 27 lines

-----Original Message-----
From: James Bottomley [mailto:[email protected]]
Sent: Wednesday, January 25, 2012 12:12 PM
To: Greg KH
Cc: Christoph Hellwig; KY Srinivasan; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH 1/1] Staging: hv: storvsc: Move the storage driver out of the staging area

Quoted 15 lines · Greg KH
Quoted 13 lines · James Bottomley
Quoted 9 lines · Greg KH
Quoted 6 lines · Christoph Hellwig
Quoted 2 lines · KY Srinivasan

James,
Any updates here?

Given that this is a new driver without external dependencies it seems fine even for a 3.3 merge to me.

Fine with me as well.

OK, so what I need to linux-scsi is an applyable patch moving it out of staging.

Quoted 7 lines
Quoted 2 lines

I think there have been about 3-4 copies of this in your email archives, but if that didn't work, I'm sure that KY can create it again :)

Actually, no ... I've got a patch adding it to staging. What I need to add it in -rc is the motion piece (remove from staging and add to SCSI) so that git doesn't say I'm trying to add 1600 lines during rc but am just quietly moving a file ...

I have sent the patch.

K. Y

Quoted 2 lines

James

���{.n�+�������+%�����ݶ��w��{.n�+����{��G�����{ay�ʇڙ�,j��f���h��������z_�(�階�ݢj"���m������G������?����&���~��iO��z��v�^�m���� ������?�I�

#14 lore raw
Quoted 43 lines

-----Original Message-----
From: [email protected] [mailto:devel- [email protected]] On Behalf Of KY Srinivasan
Sent: Wednesday, January 25, 2012 2:23 PM
To: James Bottomley; Greg KH
Cc: Christoph Hellwig; [email protected]; linux- [email protected]; [email protected]
Subject: RE: [PATCH 1/1] Staging: hv: storvsc: Move the storage driver out of the staging area

Quoted 7 lines

-----Original Message-----
From: James Bottomley [mailto:[email protected]]
Sent: Wednesday, January 25, 2012 12:12 PM
To: Greg KH
Cc: Christoph Hellwig; KY Srinivasan; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH 1/1] Staging: hv: storvsc: Move the storage driver out of

the

Quoted 21 lines

staging area

Quoted 17 lines · Greg KH
Quoted 6 lines · James Bottomley
Quoted 5 lines · Greg KH
Quoted 4 lines · Christoph Hellwig
Quoted 2 lines · KY Srinivasan

James,
Any updates here?

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

Given that this is a new driver without external dependencies it seems fine even for a 3.3 merge to me.

Fine with me as well.

OK, so what I need to linux-scsi is an applyable patch moving it out of staging.

I think there have been about 3-4 copies of this in your email archives, but if that didn't work, I'm sure that KY can create it again :)

Quoted 6 lines
Quoted 4 lines

Actually, no ... I've got a patch adding it to staging. What I need to add it in -rc is the motion piece (remove from staging and add to SCSI) so that git doesn't say I'm trying to add 1600 lines during rc but am just quietly moving a file ...

I have sent the patch.

Let me know if this is what you were looking for.

Regards,

K. Y

Quoted 4 lines

_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel

#15 lore raw
In reply to James Bottomley
Quoted 27 lines

-----Original Message-----
From: James Bottomley [mailto:[email protected]]
Sent: Wednesday, January 25, 2012 12:12 PM
To: Greg KH
Cc: Christoph Hellwig; KY Srinivasan; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH 1/1] Staging: hv: storvsc: Move the storage driver out of the staging area

Quoted 15 lines · Greg KH
Quoted 13 lines · James Bottomley
Quoted 9 lines · Greg KH
Quoted 6 lines · Christoph Hellwig
Quoted 2 lines · KY Srinivasan

James,
Any updates here?

Given that this is a new driver without external dependencies it seems fine even for a 3.3 merge to me.

Fine with me as well.

OK, so what I need to linux-scsi is an applyable patch moving it out of staging.

Quoted 7 lines
Quoted 2 lines

I think there have been about 3-4 copies of this in your email archives, but if that didn't work, I'm sure that KY can create it again :)

Actually, no ... I've got a patch adding it to staging. What I need to add it in -rc is the motion piece (remove from staging and add to SCSI) so that git doesn't say I'm trying to add 1600 lines during rc but am just quietly moving a file ...

Given that the final set of patches that addressed Christoph's comments were against Greg's staging tree and the patch I sent that moves this driver from staging to the scsi directory is also against the staging tree, would it make sense to take this driver through Greg's staging tree; assuming it is ok with both James and Greg.

Regards,

K. Y

���{.n�+�������+%�����ݶ��w��{.n�+����{��G�����{ay�ʇڙ�,j��f���h��������z_�(�階�ݢj"���m������G������?����&���~��iO��z��v�^�m���� ������?�I�