ia64/xen-unstable

changeset 2384:828c1ee1829f

bitkeeper revision 1.1159.53.20 (412fcad23hK1z2MEUvJpOm8rSZ01xg)

Call blkdev_put from vbd destroy functions.
Patch by Michael Vrable.
author cl349@freefall.cl.cam.ac.uk
date Fri Aug 27 23:59:14 2004 +0000 (2004-08-27)
parents 31a41e878690
children eb30ab8d0c31
files linux-2.6.8.1-xen-sparse/drivers/xen/blkback/vbd.c
line diff
     1.1 --- a/linux-2.6.8.1-xen-sparse/drivers/xen/blkback/vbd.c	Fri Aug 27 22:22:11 2004 +0000
     1.2 +++ b/linux-2.6.8.1-xen-sparse/drivers/xen/blkback/vbd.c	Fri Aug 27 23:59:14 2004 +0000
     1.3 @@ -305,6 +305,9 @@ void vbd_destroy(blkif_be_vbd_destroy_t 
     1.4      while ( x != NULL )
     1.5      {
     1.6          t = x->next;
     1.7 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
     1.8 +        blkdev_put(x->bdev);
     1.9 +#endif
    1.10          kfree(x);
    1.11          x = t;
    1.12      }
    1.13 @@ -330,6 +333,9 @@ void destroy_all_vbds(blkif_t *blkif)
    1.14          while ( x != NULL )
    1.15          {
    1.16              t = x->next;
    1.17 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
    1.18 +            blkdev_put(x->bdev);
    1.19 +#endif
    1.20              kfree(x);
    1.21              x = t;
    1.22          }