WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] exporting full device now works

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] exporting full device now works
From: BitKeeper Bot <riel@xxxxxxxxxxx>
Date: Fri, 01 Apr 2005 16:50:25 +0000
Delivery-date: Fri, 01 Apr 2005 18:03:25 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: Xen Development List <xen-devel@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] exporting full device now works, BitKeeper Bot <=