[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
Changes by:	bmarzins sourceware org	2006-12-18 18:18:23

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.

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

--- cluster/gnbd-kernel/src/gnbd.c	2006/11/10 22:17:39	1.16
+++ cluster/gnbd-kernel/src/gnbd.c	2006/12/18 18:18:22	1.17
@@ -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]