[DRBD-cvs] drbd by phil; I guess this was the reason why the seco...
drbd-user@lists.linbit.com
drbd-user@lists.linbit.com
Fri, 5 Mar 2004 12:05:35 +0100 (CET)
DRBD CVS committal
Author : phil
Module : drbd
Dir : drbd/drbd
Modified Files:
Tag: rel-0_7-branch
drbd_compat_wrappers.h
Log Message:
I guess this was the reason why the secondary OOPSEs in the same place
as the primary before the "bi_flags=0" fix.
===================================================================
RCS file: /var/lib/cvs/drbd/drbd/drbd/Attic/drbd_compat_wrappers.h,v
retrieving revision 1.1.2.28
retrieving revision 1.1.2.29
diff -u -3 -r1.1.2.28 -r1.1.2.29
--- drbd_compat_wrappers.h 5 Mar 2004 10:10:42 -0000 1.1.2.28
+++ drbd_compat_wrappers.h 5 Mar 2004 11:05:30 -0000 1.1.2.29
@@ -453,6 +453,8 @@
sector_t sector, int size)
{
struct bio * const bio = &e->private_bio;
+
+ bio->bi_flags = 1 << BIO_UPTODATE;
bio->bi_io_vec->bv_len =
bio->bi_size = size;
bio->bi_bdev = mdev->backing_bdev;