Skip to content

Commit

Permalink
Staging: hv: Remove osd layer
Browse files Browse the repository at this point in the history
The OSD layer was a wrapper around native interfaces
adding little value and was infact buggy -
refer to the osd_wait.patch for details.
This patch gets rid of the OSD abstraction.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Feb 18, 2011
1 parent 0c3b7b2 commit e3fe0bb
Show file tree
Hide file tree
Showing 20 changed files with 26 additions and 272 deletions.
2 changes: 1 addition & 1 deletion drivers/staging/hv/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ obj-$(CONFIG_HYPERV_BLOCK) += hv_blkvsc.o
obj-$(CONFIG_HYPERV_NET) += hv_netvsc.o
obj-$(CONFIG_HYPERV_UTILS) += hv_utils.o

hv_vmbus-y := vmbus_drv.o osd.o \
hv_vmbus-y := vmbus_drv.o \
hv.o connection.o channel.o \
channel_mgmt.o ring_buffer.o
hv_storvsc-y := storvsc_drv.o storvsc.o
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/hv/blkvsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
*/
#include <linux/kernel.h>
#include <linux/mm.h>
#include "osd.h"
#include "hv_api.h"
#include "storvsc.c"

static const char *g_blk_driver_name = "blkvsc";
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/hv/blkvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include <scsi/scsi_cmnd.h>
#include <scsi/scsi_eh.h>
#include <scsi/scsi_dbg.h>
#include "osd.h"
#include "hv_api.h"
#include "logging.h"
#include "version_info.h"
#include "vmbus.h"
Expand Down
5 changes: 4 additions & 1 deletion drivers/staging/hv/channel.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,13 @@
#include <linux/mm.h>
#include <linux/slab.h>
#include <linux/module.h>
#include "osd.h"
#include "hv_api.h"
#include "logging.h"
#include "vmbus_private.h"

#define NUM_PAGES_SPANNED(addr, len) \
((PAGE_ALIGN(addr + len) >> PAGE_SHIFT) - (addr >> PAGE_SHIFT))

/* Internal routines */
static int create_gpadl_header(
void *kbuffer, /* must be phys and virt contiguous */
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/hv/channel_mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include <linux/list.h>
#include <linux/module.h>
#include <linux/completion.h>
#include "osd.h"
#include "hv_api.h"
#include "logging.h"
#include "vmbus_private.h"
#include "utils.h"
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/hv/connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include <linux/mm.h>
#include <linux/slab.h>
#include <linux/vmalloc.h>
#include "osd.h"
#include "hv_api.h"
#include "logging.h"
#include "vmbus_private.h"

Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/hv/hv.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <linux/mm.h>
#include <linux/slab.h>
#include <linux/vmalloc.h>
#include "osd.h"
#include "hv_api.h"
#include "logging.h"
#include "vmbus_private.h"

Expand Down
5 changes: 5 additions & 0 deletions drivers/staging/hv/hv_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@
#ifndef __HV_API_H
#define __HV_API_H

struct hv_guid {
unsigned char data[16];
};



/* Status codes for hypervisor operations. */

Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/hv/hv_kvp.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include <linux/workqueue.h>

#include "logging.h"
#include "osd.h"
#include "hv_api.h"
#include "vmbus.h"
#include "vmbus_packet_format.h"
#include "vmbus_channel_interface.h"
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/hv/hv_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include <linux/pci.h>

#include "logging.h"
#include "osd.h"
#include "hv_api.h"
#include "vmbus.h"
#include "vmbus_packet_format.h"
#include "vmbus_channel_interface.h"
Expand Down
3 changes: 3 additions & 0 deletions drivers/staging/hv/logging.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
#ifndef _LOGGING_H_
#define _LOGGING_H_

#define LOWORD(dw) ((unsigned short)(dw))
#define HIWORD(dw) ((unsigned short)(((unsigned int) (dw) >> 16) & 0xFFFF))

/* #include <linux/init.h> */
/* #include <linux/module.h> */

Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/hv/netvsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <linux/delay.h>
#include <linux/io.h>
#include <linux/slab.h>
#include "osd.h"
#include "hv_api.h"
#include "logging.h"
#include "netvsc.h"
#include "rndis_filter.h"
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/hv/netvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#include <net/route.h>
#include <net/sock.h>
#include <net/pkt_sched.h>
#include "osd.h"
#include "hv_api.h"
#include "logging.h"
#include "version_info.h"
#include "vmbus.h"
Expand Down
194 changes: 0 additions & 194 deletions drivers/staging/hv/osd.c

This file was deleted.

62 changes: 0 additions & 62 deletions drivers/staging/hv/osd.h

This file was deleted.

1 change: 0 additions & 1 deletion drivers/staging/hv/ring_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

#include <linux/kernel.h>
#include <linux/mm.h>
#include "osd.h"
#include "logging.h"
#include "ring_buffer.h"

Expand Down
Loading

0 comments on commit e3fe0bb

Please sign in to comment.