lvm in 2.4.15.pre3

lvm in 2.4.15.pre3

Post by Patrick Caulfiel » Tue, 13 Nov 2001 22:10:10



Please apply the following patch to LVM in 2.4.13pre3.

It looks like the LVM patch that came from Alan calls alloc/free_kiovec_sz()
functions which only exist in his tree.

patrick

--- drivers/md/lvm-snap.c.orig  Mon Nov 12 12:53:01 2001

 int lvm_snapshot_alloc(lv_t * lv_snap)
 {
        int ret, max_sectors;
-       int nbhs = KIO_MAX_SECTORS;

        /* allocate kiovec to do chunk io */
-       ret = alloc_kiovec_sz(1, &lv_snap->lv_iobuf, &nbhs);
+       ret = alloc_kiovec(1, &lv_snap->lv_iobuf);
        if (ret) goto out;


        if (ret) goto out_free_kiovec;

        /* allocate kiovec to do exception table io */
-       ret = alloc_kiovec_sz(1, &lv_snap->lv_COW_table_iobuf, &nbhs);
+       ret = alloc_kiovec(1, &lv_snap->lv_COW_table_iobuf);
        if (ret) goto out_free_kiovec;


 out_free_both_kiovecs:
        unmap_kiobuf(lv_snap->lv_COW_table_iobuf);
-       free_kiovec_sz(1, &lv_snap->lv_COW_table_iobuf, &nbhs);
+       free_kiovec(1, &lv_snap->lv_COW_table_iobuf);
        lv_snap->lv_COW_table_iobuf = NULL;

 out_free_kiovec:
        unmap_kiobuf(lv_snap->lv_iobuf);
-       free_kiovec_sz(1, &lv_snap->lv_iobuf, &nbhs);
+       free_kiovec(1, &lv_snap->lv_iobuf);
        lv_snap->lv_iobuf = NULL;
        if (lv_snap->lv_snapshot_hash_table != NULL)

 void lvm_snapshot_release(lv_t * lv)
 {
-       int     nbhs = KIO_MAX_SECTORS;
-
        if (lv->lv_block_exception)
        {

        {
                kiobuf_wait_for_io(lv->lv_iobuf);
                unmap_kiobuf(lv->lv_iobuf);
-               free_kiovec_sz(1, &lv->lv_iobuf, &nbhs);
+               free_kiovec(1, &lv->lv_iobuf);
                lv->lv_iobuf = NULL;
        }
        if (lv->lv_COW_table_iobuf)
        {
                kiobuf_wait_for_io(lv->lv_COW_table_iobuf);
                unmap_kiobuf(lv->lv_COW_table_iobuf);
-               free_kiovec_sz(1, &lv->lv_COW_table_iobuf, &nbhs);
+               free_kiovec(1, &lv->lv_COW_table_iobuf);
                lv->lv_COW_table_iobuf = NULL;
        }
 }
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

lvm in 2.4.15.pre3

Post by Alan Co » Tue, 13 Nov 2001 22:20:11


Quote:> Please apply the following patch to LVM in 2.4.13pre3.

> It looks like the LVM patch that came from Alan calls alloc/free_kiovec_sz()
> functions which only exist in his tree.

Just sent Linus the same thing 8)

Alan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

lvm in 2.4.15.pre3

Post by Ville Herv » Tue, 13 Nov 2001 23:30:12


On Mon, Nov 12, 2001 at 01:19:01PM +0000, you [Alan Cox] claimed:

Quote:> > Please apply the following patch to LVM in 2.4.13pre3.

> > It looks like the LVM patch that came from Alan calls alloc/free_kiovec_sz()
> > functions which only exist in his tree.

> Just sent Linus the same thing 8)

Sorry if this is a FAQ, but I see the LVM in .15pre3 is 0.9.1beta2. Are there
plans to merge something newer like 1.0.1pre4?

What about Andreas Dilger's fixes? Do they get the pre3 LVM closer to
1.0.1pre4?

-- v --


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/