[Cluster-devel] cluster/gnbd-kernel/src gnbd.c

bmarzins at sourceware.org bmarzins at sourceware.org
Tue Jun 19 22:31:56 UTC 2007


CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	bmarzins at sourceware.org	2007-06-19 22:31:56

Modified files:
	gnbd-kernel/src: gnbd.c 

Log message:
	GNBD doesn't need to flush the cache after it looses connection with the server.
	Either it will be multipathed, and the multipath device will own the cache, or
	it won't and flushing the cache will get you nothing more than a flood of error
	messages all at once, instead of a stream.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gnbd-kernel/src/gnbd.c.diff?cvsroot=cluster&r1=1.19&r2=1.20

--- cluster/gnbd-kernel/src/gnbd.c	2007/06/06 15:11:54	1.19
+++ cluster/gnbd-kernel/src/gnbd.c	2007/06/19 22:31:56	1.20
@@ -713,8 +713,10 @@
 		bdev = dev->bdev;
 		if (bdev) {
 			blk_run_queue(dev->disk->queue);
+#if 0
 			fsync_bdev(bdev);
 			invalidate_bdev(bdev);
+#endif
 		}
 		up(&dev->do_it_lock);
 		return 0;




More information about the Cluster-devel mailing list