[dm-devel] 2.6.5-rc1-udm1: Patch 3/3

Kevin Corry kevcorry at us.ibm.com
Tue Mar 16 16:03:33 UTC 2004


On Tuesday 16 March 2004 8:38 am, Joe Thornber wrote:
> http://people.sistina.com/~thornber/dm/patches/2.6-unstable/2.6.5-rc1/2.6.5
>-rc1-udm1.tar.bz2
>
> I think there were some issues with 2.6.4-mm1, the -udm patches haven't
> changed.

BIO_RW_SYNC is a shift-value.

--- diff/drivers/md/dm-io.c	2004-03-16 09:59:09.000000000 -0600
+++ source/drivers/md/dm-io.c	2004-03-16 09:58:57.000000000 -0600
@@ -497,7 +497,7 @@
 	struct dpages old_pages = *dp;
 
 	if (sync)
-		rw |= BIO_RW_SYNC;
+		rw |= (1 << BIO_RW_SYNC);
 
 	/*
 	 * For multiple regions we need to be careful to rewind



More information about the dm-devel mailing list