[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



CVSROOT:	/cvs/cluster
Module name:	cluster
Branch: 	RHEL50
Changes by:	bmarzins sourceware org	2006-12-18 18:17:45

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

Log message:
	GNBD was hanging with the cfq scheduler, so I changed the default scheduler for
	all gnbd devices to the anticipatory scheduler. This resolves bz #212428

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gnbd-kernel/src/gnbd.c.diff?cvsroot=cluster&only_with_tag=RHEL50&r1=1.15.4.1&r2=1.15.4.2

--- cluster/gnbd-kernel/src/gnbd.c	2006/11/21 22:01:42	1.15.4.1
+++ cluster/gnbd-kernel/src/gnbd.c	2006/12/18 18:17:44	1.15.4.2
@@ -910,6 +910,13 @@
 			put_disk(disk);
 			goto out;
 		}
+		elevator_exit(disk->queue->elevator);
+		err = elevator_init(disk->queue, "anticipatory");
+		if (err) {
+			blk_cleanup_queue(disk->queue);
+			put_disk(disk);
+			goto out;
+		}
 	}
 	major_nr = register_blkdev(major_nr, "gnbd");
 	if (major_nr < 0) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]