This patch is still needed for pre6
Peter Osterlund wrote:
> This patch seems to work:
> 
> --- linux/drivers/block/rd.c.orig       Sat Sep  8 11:58:19 2001
> +++ linux/drivers/block/rd.c    Sat Sep  8 12:21:50 2001
> @@ -259,7 +259,7 @@
>                         /* special: we want to release the ramdisk memory,
>                            it's not like with the other blockdevices where
>                            this ioctl only flushes away the buffer cache. */
> -                       if ((atomic_read(rd_bdev[minor]->bd_openers) > 2))
> +                       if ((atomic_read(&rd_bdev[minor]->bd_openers) > 2))
>                                 return -EBUSY;
>                         destroy_buffers(inode->i_rdev);
>                         rd_blocksizes[minor] = 0;
> @@ -372,7 +372,7 @@
>                 struct block_device *bdev = rd_bdev[i];
>                 rd_bdev[i] = NULL;
>                 if (bdev) {
> -                       blkdev_put(bdev);
> +                       blkdev_put(bdev, BDEV_FILE);
>                         bdput(bdev);
>                 }
>                 destroy_buffers(MKDEV(MAJOR_NR, i));
> 
> --
> Peter Österlund             petero2@telia.com
> Sköndalsvägen 35            http://w1.894.telia.com/~u89404340
> S-128 66 Sköndal            +46 8 942647
> Sweden
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/