Displaying 3 results from an estimated 3 matches for "blkif_vd".
Did you mean:
blkif_vde
2011 May 25
2
[PATCH linux-2.6.18-xen] blkback: don''t call vbd_size() if bd_disk is NULL
...en/blkback/vbd.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff -r 415a9b435fef drivers/xen/blkback/vbd.c
--- a/drivers/xen/blkback/vbd.c Mon May 23 18:36:33 2011 +0100
+++ b/drivers/xen/blkback/vbd.c Wed May 25 12:15:26 2011 +0200
@@ -73,7 +73,6 @@ int vbd_create(blkif_t *blkif, blkif_vde
}
vbd->bdev = bdev;
- vbd->size = vbd_size(vbd);
if (vbd->bdev->bd_disk == NULL) {
DPRINTK("vbd_creat: device %08x doesn''t exist.\n",
@@ -82,6 +81,8 @@ int vbd_create(blkif_t *blkif, blkif_vde
return -ENOENT;
}
+ vbd->size = vbd_size(vbd);
+...
2011 Jun 21
13
VM disk I/O limit patch
...>bdev->bd_disk))
+#undef DPRINTK
+#define DPRINTK(fmt, args...) \
+ printk("blkback/vbd (%s:%d) " fmt ".\n", \
+ __FUNCTION__, __LINE__, ##args)
+
unsigned long long vbd_size(struct vbd *vbd)
{
return vbd_sz(vbd);
@@ -87,7 +92,7 @@ int vbd_create(blkif_t *blkif, blkif_vde
if (vbd->bdev->bd_disk->flags & GENHD_FL_REMOVABLE)
vbd->type |= VDISK_REMOVABLE;
- DPRINTK("Successful creation of handle=%04x (dom=%u)\n",
+ DPRINTK("Successful creation of handle=%04x (dom=%u)",
handle, blkif->domid);
return 0;
}
diff -urNp bl...
2011 Jun 21
13
VM disk I/O limit patch
...>bdev->bd_disk))
+#undef DPRINTK
+#define DPRINTK(fmt, args...) \
+ printk("blkback/vbd (%s:%d) " fmt ".\n", \
+ __FUNCTION__, __LINE__, ##args)
+
unsigned long long vbd_size(struct vbd *vbd)
{
return vbd_sz(vbd);
@@ -87,7 +92,7 @@ int vbd_create(blkif_t *blkif, blkif_vde
if (vbd->bdev->bd_disk->flags & GENHD_FL_REMOVABLE)
vbd->type |= VDISK_REMOVABLE;
- DPRINTK("Successful creation of handle=%04x (dom=%u)\n",
+ DPRINTK("Successful creation of handle=%04x (dom=%u)",
handle, blkif->domid);
return 0;
}
diff -urNp bl...