Get rid of blkvsc_do_read_capacity16() and instead use the common function
for retrieving capacity.
Signed-off-by: K. Y. Srinivasan
Signed-off-by: Haiyang Zhang
Signed-off-by: Hank Janssen
---
drivers/staging/hv/blkvsc_drv.c | 81 +--
1 files changed, 2 in
Get rid of some of the DPRINT_INFO() statements.
Signed-off-by: K. Y. Srinivasan
Signed-off-by: Haiyang Zhang
Signed-off-by: Hank Janssen
---
drivers/staging/hv/blkvsc_drv.c |3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/hv/blkvsc_drv.c b/drivers/sta
In preparation for removing the IDE details from the block driver, implement
a function that maps channel properties to block device information.
Signed-off-by: K. Y. Srinivasan
Signed-off-by: Haiyang Zhang
Signed-off-by: Hank Janssen
---
drivers/staging/hv/storvsc.c | 68 +++
Get rid of some of the DPRINT_DBG() statements.
Signed-off-by: K. Y. Srinivasan
Signed-off-by: Haiyang Zhang
Signed-off-by: Hank Janssen
---
drivers/staging/hv/blkvsc_drv.c | 84 ---
1 files changed, 0 insertions(+), 84 deletions(-)
diff --git a/drivers/s
It is never the case that the dev_add function pointer will not be set
(we set it in this code!). Get rid of this meaningless check.
Signed-off-by: K. Y. Srinivasan
Signed-off-by: Haiyang Zhang
Signed-off-by: Hank Janssen
---
drivers/staging/hv/blkvsc_drv.c |5 -
1 files changed, 0 ins
Now that we have a common function for some of the operations on the device,
use that and get rid of the function blkvsc_do_read_capacity().
Signed-off-by: K. Y. Srinivasan
Signed-off-by: Haiyang Zhang
Signed-off-by: Hank Janssen
---
drivers/staging/hv/blkvsc_drv.c | 117 +
The Hyper-V block driver does not handle removable media.
Get rid of the code to manage removable media.
Signed-off-by: K. Y. Srinivasan
Signed-off-by: Haiyang Zhang
Signed-off-by: Hank Janssen
---
drivers/staging/hv/blkvsc_drv.c |9 +
1 files changed, 1 insertions(+), 8 deletions(
One of the jump labels was named Remove; change it to remove.
Signed-off-by: K. Y. Srinivasan
Signed-off-by: Haiyang Zhang
Signed-off-by: Hank Janssen
---
drivers/staging/hv/blkvsc_drv.c |6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/hv/blkvsc_drv
The block driver in Hyper-V does not support removable media, get rid of the
blkvsc_revalidate_disk().
Signed-off-by: K. Y. Srinivasan
Signed-off-by: Haiyang Zhang
Signed-off-by: Hank Janssen
---
drivers/staging/hv/blkvsc_drv.c | 17 -
1 files changed, 0 insertions(+), 17 del
Now get rid of IDE details from blkvsc_drv.c.
Signed-off-by: K. Y. Srinivasan
Signed-off-by: Haiyang Zhang
Signed-off-by: Hank Janssen
---
drivers/staging/hv/blkvsc_drv.c | 55 +++---
drivers/staging/hv/storvsc.c| 18 ++--
2 files changed, 25 ins
blkvsc_remove() cannot fail. Clean it up accordingly.
Signed-off-by: K. Y. Srinivasan
Signed-off-by: Haiyang Zhang
Signed-off-by: Hank Janssen
---
drivers/staging/hv/blkvsc_drv.c | 15 +++
1 files changed, 3 insertions(+), 12 deletions(-)
diff --git a/drivers/staging/hv/blkvsc_d
We don't support removable media in Hyper-V block driver.
Get rid of blkvsc_check_events() as it is efectively "dead code".
Signed-off-by: K. Y. Srinivasan
Signed-off-by: Haiyang Zhang
Signed-off-by: Hank Janssen
---
drivers/staging/hv/blkvsc_drv.c |9 -
1 files changed, 0 inserti
Given that we don't support removable media, cleanup blkvsc_open().
Signed-off-by: K. Y. Srinivasan
Signed-off-by: Haiyang Zhang
Signed-off-by: Hank Janssen
---
drivers/staging/hv/blkvsc_drv.c | 10 +-
1 files changed, 1 insertions(+), 9 deletions(-)
diff --git a/drivers/staging/hv/
One of the goto labels was named Cleanup; change it to cleanup.
Signed-off-by: K. Y. Srinivasan
Signed-off-by: Haiyang Zhang
Signed-off-by: Hank Janssen
---
drivers/staging/hv/blkvsc_drv.c | 12 ++--
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/staging/hv/bl
We can support HDIO_GET_IDENTITY ioctl, enable blkvsc_ioctl().
Signed-off-by: K. Y. Srinivasan
Signed-off-by: Haiyang Zhang
Signed-off-by: Hank Janssen
---
drivers/staging/hv/blkvsc_drv.c | 11 +++
1 files changed, 3 insertions(+), 8 deletions(-)
diff --git a/drivers/staging/hv/blkv
There are multiple functions to either get info about the device
(INQUIRY, CAPACITY etc) or to FLUSH the device cache. The majority of the
code for these functions is identical. Introduce a common function for
doing all these operations.
Signed-off-by: K. Y. Srinivasan
Signed-off-by: Haiyang Zha
Get rid of some DPRINT_ERR() calls.
Signed-off-by: K. Y. Srinivasan
Signed-off-by: Haiyang Zhang
Signed-off-by: Hank Janssen
---
drivers/staging/hv/blkvsc_drv.c |9 +++--
1 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/drivers/staging/hv/blkvsc_drv.c b/drivers/staging/hv
The block driver in Hyper-V does not handle removable media, get rid of the
media_not_present state.
Signed-off-by: K. Y. Srinivasan
Signed-off-by: Haiyang Zhang
Signed-off-by: Hank Janssen
---
drivers/staging/hv/blkvsc_drv.c |9 +
1 files changed, 1 insertions(+), 8 deletions(-)
We are making up the geometry anyway, keep it simple.
Signed-off-by: K. Y. Srinivasan
Signed-off-by: Haiyang Zhang
Signed-off-by: Hank Janssen
---
drivers/staging/hv/blkvsc_drv.c | 84 +-
1 files changed, 11 insertions(+), 73 deletions(-)
diff --git a/dri
storvsc_remove() cannot fail, clean it up accordingly.
Signed-off-by: K. Y. Srinivasan
Signed-off-by: Haiyang Zhang
Signed-off-by: Hank Janssen
---
drivers/staging/hv/storvsc_drv.c | 14 ++
1 files changed, 2 insertions(+), 12 deletions(-)
diff --git a/drivers/staging/hv/storvsc
Get rid of the function blkvsc_do_flush() and instead use the common function
to force a device flush.
Signed-off-by: K. Y. Srinivasan
Signed-off-by: Haiyang Zhang
Signed-off-by: Hank Janssen
---
drivers/staging/hv/blkvsc_drv.c | 52 ++
1 files changed, 14
Simplyfify blkvsc_init_rw() by using a single scsi command independent of
the start sector.
Signed-off-by: K. Y. Srinivasan
Signed-off-by: Haiyang Zhang
Signed-off-by: Hank Janssen
---
drivers/staging/hv/blkvsc_drv.c | 58 +--
1 files changed, 13 insertion
> -Original Message-
> From: Greg KH [mailto:g...@kroah.com]
> Sent: Tuesday, April 05, 2011 11:11 AM
> To: KY Srinivasan
> Cc: gre...@suse.de; linux-ker...@vger.kernel.org;
> de...@linuxdriverproject.org; virtualizat...@lists.osdl.org
> Subject: Re: [PATCH 00/22] Staging: hv: Cleanup-sto
The latest upstream merge changed struct block_device_operations:
This merge got rid of blkvsc_media_changed and introduced the
function blkvsc_check_events. This broke all the patches that
were sent after the tree was closed the last time. This is a resend of
this patch-set to account for this cha
Get rid of the forward declaration for blkvsc_do_request() by moving the
code around.
Signed-off-by: K. Y. Srinivasan
Signed-off-by: Haiyang Zhang
Signed-off-by: Abhishek Kane
Signed-off-by: Hank Janssen
---
drivers/staging/hv/blkvsc_drv.c | 370 ---
1 fil
Get rid of the forward declaration for blkvsc_do_read_capacity() by moving
the code around.
Signed-off-by: K. Y. Srinivasan
Signed-off-by: Haiyang Zhang
Signed-off-by: Abhishek Kane
Signed-off-by: Hank Janssen
---
drivers/staging/hv/blkvsc_drv.c | 152 +++---
After Quick Migration, the network is not immediately operational in the
current context when receiving RNDIS_STATUS_MEDIA_CONNECT event. So, I added
another netif_notify_peers() into a scheduled work, otherwise GARP packet will
not be sent after quick migration, and cause network disconnection.
T
Move module parameter to be earlier in the file.
Signed-off-by: K. Y. Srinivasan
Signed-off-by: Haiyang Zhang
Signed-off-by: Abhishek Kane
Signed-off-by: Hank Janssen
---
drivers/staging/hv/blkvsc_drv.c |6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/stag
Get rid of the forward declaration of blkvsc_remove() by moving the code around.
Signed-off-by: K. Y. Srinivasan
Signed-off-by: Haiyang Zhang
Signed-off-by: Abhishek Kane
Signed-off-by: Hank Janssen
---
drivers/staging/hv/blkvsc_drv.c | 130 +++---
1 files cha
Get rid of the forward declaration of blkvsc_cmd_completion() by moving the
code around.
Signed-off-by: K. Y. Srinivasan
Signed-off-by: Haiyang Zhang
Signed-off-by: Abhishek Kane
Signed-off-by: Hank Janssen
---
drivers/staging/hv/blkvsc_drv.c | 48 +++---
1
Get rid of the forward declaration for blkvsc_request() by moving the code
around.
Signed-off-by: K. Y. Srinivasan
Signed-off-by: Haiyang Zhang
Signed-off-by: Abhishek Kane
Signed-off-by: Hank Janssen
---
drivers/staging/hv/blkvsc_drv.c | 86 +++---
1 files c
Get rid of the forward declaration of blkvsc_ioctl() by moving the code around.
Signed-off-by: K. Y. Srinivasan
Signed-off-by: Haiyang Zhang
Signed-off-by: Abhishek Kane
Signed-off-by: Hank Janssen
---
drivers/staging/hv/blkvsc_drv.c | 56 ++
1 files chan
Get rid of the forward declaration of blkvsc_getgeo() by moving the code around.
Signed-off-by: K. Y. Srinivasan
Signed-off-by: Haiyang Zhang
Signed-off-by: Abhishek Kane
Signed-off-by: Hank Janssen
---
drivers/staging/hv/blkvsc_drv.c | 162 +++---
1 files cha
Get rid of the forward declaration for blkvsc_release() by moving the code
around.
Signed-off-by: K. Y. Srinivasan
Signed-off-by: Haiyang Zhang
Signed-off-by: Abhishek Kane
Signed-off-by: Hank Janssen
---
drivers/staging/hv/blkvsc_drv.c | 45 +++
1 files
From: Ian Campbell
Date: Mon, 4 Apr 2011 10:55:55 +0100
> You mean the "!X86_VISWS" I presume? It doesn't make sense to me either.
No, I think 32-bit x86 allmodconfig elides XEN because of it's X86_TSC
dependency.
And, well, you could type "make allmodconfig" on your tree and see for
yourself
From: Ian Campbell
Date: Mon, 4 Apr 2011 09:26:24 +0100
> Subject: [PATCH] xen: netback: use unsigned type for one-bit bitfield.
>
> Fixes error from sparse:
> CHECK drivers/net/xen-netback/xenbus.c
> drivers/net/xen-netback/xenbus.c:29:40: error: dubious one-bit signed bitfield
>
>
Get rid of the forward declaration of blkvsc_do_read_capacity16() by moving
the code around.
Signed-off-by: K. Y. Srinivasan
Signed-off-by: Haiyang Zhang
Signed-off-by: Abhishek Kane
Signed-off-by: Hank Janssen
---
drivers/staging/hv/blkvsc_drv.c | 168 +++---
Get rid of the forward declaration of blkvsc_check_events()
by moving the code around.
Signed-off-by: K. Y. Srinivasan
Signed-off-by: Haiyang Zhang
Signed-off-by: Abhishek Kane
Signed-off-by: Hank Janssen
---
drivers/staging/hv/blkvsc_drv.c | 17 -
1 files changed, 8 inse
Get rid of the forward declaration for blkvsc_do_inquiry() by moving the code
around.
Signed-off-by: K. Y. Srinivasan
Signed-off-by: Haiyang Zhang
Signed-off-by: Abhishek Kane
Signed-off-by: Hank Janssen
---
drivers/staging/hv/blkvsc_drv.c | 158 +++---
1 file
Get rid of some dead code in blkvsc_drv.c.
Signed-off-by: K. Y. Srinivasan
Signed-off-by: Haiyang Zhang
Signed-off-by: Abhishek Kane
Signed-off-by: Hank Janssen
---
drivers/staging/hv/blkvsc_drv.c | 26 --
1 files changed, 0 insertions(+), 26 deletions(-)
diff --git
Get rid of the forward declaration of blkvsc_submit_request() by moving the
code around.
Signed-off-by: K. Y. Srinivasan
Signed-off-by: Haiyang Zhang
Signed-off-by: Abhishek Kane
Signed-off-by: Hank Janssen
---
drivers/staging/hv/blkvsc_drv.c | 117 ---
1
Get rid of the forward declaration of blkvsc_do_flush() by moving the code
around.
Signed-off-by: K. Y. Srinivasan
Signed-off-by: Haiyang Zhang
Signed-off-by: Abhishek Kane
Signed-off-by: Hank Janssen
---
drivers/staging/hv/blkvsc_drv.c | 71 +++
1 files
Move some definitions/declarations to be earlier in the file.
Signed-off-by: K. Y. Srinivasan
Signed-off-by: Haiyang Zhang
Signed-off-by: Abhishek Kane
Signed-off-by: Hank Janssen
---
drivers/staging/hv/blkvsc_drv.c | 11 ---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --
Get rid of the forward declaration of blkvsc_cancel_pending_reqs() by moving
the code around.
Signed-off-by: K. Y. Srinivasan
Signed-off-by: Haiyang Zhang
Signed-off-by: Abhishek Kane
Signed-off-by: Hank Janssen
---
drivers/staging/hv/blkvsc_drv.c | 159 +++---
Get rid of the forward declaration of blkvsc_open() by moving the code around.
Signed-off-by: K. Y. Srinivasan
Signed-off-by: Haiyang Zhang
Signed-off-by: Abhishek Kane
Signed-off-by: Hank Janssen
---
drivers/staging/hv/blkvsc_drv.c | 49 +++
1 files chan
Get rid of the forward declaration for blkvsc_do_pending_reqs() by moving
the code around.
Signed-off-by: K. Y. Srinivasan
Signed-off-by: Haiyang Zhang
Signed-off-by: Abhishek Kane
Signed-off-by: Hank Janssen
---
drivers/staging/hv/blkvsc_drv.c | 45 +++
Get rid of the forward declaration of blkvsc_revalidate_disk() by moving
the code around.
Signed-off-by: K. Y. Srinivasan
Signed-off-by: Haiyang Zhang
Signed-off-by: Abhishek Kane
Signed-off-by: Hank Janssen
---
drivers/staging/hv/blkvsc_drv.c | 31 +++
1 files c
Get rid of the forward declaration of blkvsc_init_rw() by moving the
code around.
Signed-off-by: K. Y. Srinivasan
Signed-off-by: Haiyang Zhang
Signed-off-by: Abhishek Kane
Signed-off-by: Hank Janssen
---
drivers/staging/hv/blkvsc_drv.c | 117 ---
1 files c
Get rid of the forward declaration of blkvsc_shutdown() by moving the
code around.
Signed-off-by: K. Y. Srinivasan
Signed-off-by: Haiyang Zhang
Signed-off-by: Abhishek Kane
Signed-off-by: Hank Janssen
---
drivers/staging/hv/blkvsc_drv.c | 70 +++
1 files
The latest upstream merge changed struct block_device_operations:
This merge got rid of blkvsc_media_changed and introduced the
function blkvsc_check_events. This broke all the patches that
were sent after the tree was closed the last time. This is a resend of
this patch-set to account for this cha
* Takuma Umeya [2011-04-05 00:00]:
> When virtio block device is removed, index does not get decremented. When
> another virtio disk is attached it uses the next device letter to the
> one that is suppose to be available.
>
> Signed-off-by: Takuma Umeya
>
> diff --git a/drivers/block/virtio_
This fixes a couple of bugs that was introduced in the patch-set titled:
Staging: hv: Cleanup storage drivers phase II.
A corrected version of this patch-set was sent out earlier, however
the earlier (buggy) version of this patch-set was already applied.
This patch set fixes this problem..
Re
Properly capture the error state after the completion of I/O. This fixes a bug
that was introduced in the patch-set titled:
Staging: hv: Cleanup-storage-drivers-phase-II.
A corrected version of this patch-set was sent out earlier, however
the earlier (buggy) version of this patch-set was already ap
As part of the cleanup of the I/O request structure, allocate them zeroed
out. This fixes a bug that was introduced in the patch-set titled:
Staging: hv: Cleanup-storage-drivers-phase-II.
A corrected version of this patch-set was sent out earlier, however
the earlier (buggy) version of this patch-s
On 2011-04-06 03:32, Rusty Russell wrote:
> On Tue, 05 Apr 2011 07:08:12 +0200, Jens Axboe wrote:
>> On 2011-04-05 06:49, Takuma Umeya wrote:
>>> When virtio block device is removed, index does not get decremented. When
>>> another virtio disk is attached it uses the next device letter to the
>>
KVM Forum 2011 - Save the Date
Conference: August 15 - 16, 2011
Location: Hyatt Regency Vancouver - Vancouver, Canada
KVM is an industry leading open source hypervisor that provides an ideal
platform for datacenter virtualization, virtual desktop infrastructure,
and cloud computing. Once again,
On 2011-04-05 06:49, Takuma Umeya wrote:
> When virtio block device is removed, index does not get decremented. When
> another virtio disk is attached it uses the next device letter to the
> one that is suppose to be available.
>
> Signed-off-by: Takuma Umeya
>
> diff --git a/drivers/block/vi
57 matches
Mail list logo