[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] exporting full device now works



ChangeSet 1.1421.1.1, 2005/04/01 17:50:25+01:00, vh249@xxxxxxxxxxxxxxxxxxxxxx

        exporting full device now works
        
        Signed-off-by: Vincent Hanquez <vincent@xxxxxxxxxxxxx>



 blkfront.c |    3 +--
 vbd.c      |    9 ---------
 2 files changed, 1 insertion(+), 11 deletions(-)


diff -Nru a/linux-2.6.11-xen-sparse/drivers/xen/blkfront/blkfront.c 
b/linux-2.6.11-xen-sparse/drivers/xen/blkfront/blkfront.c
--- a/linux-2.6.11-xen-sparse/drivers/xen/blkfront/blkfront.c   2005-04-01 
13:03:21 -05:00
+++ b/linux-2.6.11-xen-sparse/drivers/xen/blkfront/blkfront.c   2005-04-01 
13:03:21 -05:00
@@ -225,8 +225,7 @@
 int blkif_ioctl(struct inode *inode, struct file *filep,
                 unsigned command, unsigned long argument)
 {
-       int i;
-    /*  struct gendisk *gd = inode->i_bdev->bd_disk; */
+    int i;
 
     DPRINTK_IOCTL("command: 0x%x, argument: 0x%lx, dev: 0x%04x\n",
                   command, (long)argument, inode->i_rdev); 
diff -Nru a/linux-2.6.11-xen-sparse/drivers/xen/blkfront/vbd.c 
b/linux-2.6.11-xen-sparse/drivers/xen/blkfront/vbd.c
--- a/linux-2.6.11-xen-sparse/drivers/xen/blkfront/vbd.c        2005-04-01 
13:03:21 -05:00
+++ b/linux-2.6.11-xen-sparse/drivers/xen/blkfront/vbd.c        2005-04-01 
13:03:21 -05:00
@@ -338,8 +338,6 @@
     if ( !bd )
         goto out;
     
-    down(&bd->bd_sem);
-
     gd = xlvbd_alloc_gendisk(mi, minor, disk);
     if ( !gd )
         goto out_bd;
@@ -365,7 +363,6 @@
 
     list_add(&new->list, list);
 out_bd:
-    up(&bd->bd_sem);
     bdput(bd);
 out:
     return 0;
@@ -385,8 +382,6 @@
     if ( !bd )
         return -1;
 
-    down(&bd->bd_sem);
-
     gd = get_gendisk(device, &unused);
     di = gd->private_data;
 
@@ -400,7 +395,6 @@
 
     xlvbd_device_free(disk);
 out:
-    up(&bd->bd_sem);
     bdput(bd);
     return ret;
 }
@@ -421,13 +415,10 @@
     if ( !bd )
         return -1;
 
-    down(&bd->bd_sem);
-
     gd = get_gendisk(device, &unused);
     set_capacity(gd, disk->capacity);    
     ldisk->capacity = disk->capacity;
 
-    up(&bd->bd_sem);
     bdput(bd);
 
     return 0;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.