patch-2.4.0-test3 linux/include/linux/blkdev.h

Next file: linux/include/linux/coda_psdev.h
Previous file: linux/include/linux/blk.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test2/linux/include/linux/blkdev.h linux/include/linux/blkdev.h
@@ -23,9 +23,8 @@
 	int elevator_sequence;
 	struct list_head table;
 
-	/*
-	 * queue free list belongs to
-	 */
+	struct list_head *free_list;
+
 	volatile int rq_status;	/* should split this into a few status bits */
 #define RQ_INACTIVE		(-1)
 #define RQ_ACTIVE		1
@@ -70,16 +69,14 @@
 /*
  * Default nr free requests per queue
  */
-#define QUEUE_NR_REQUESTS	512
-#define QUEUE_WRITES_MAX	((2 * QUEUE_NR_REQUESTS) / 3)
+#define QUEUE_NR_REQUESTS	256
 
 struct request_queue
 {
 	/*
 	 * the queue request freelist, one for reads and one for writes
 	 */
-	struct list_head	request_freelist;
-	int			queue_requests;
+	struct list_head	request_freelist[2];
 
 	/*
 	 * Together with queue_head for cacheline sharing
@@ -180,7 +177,7 @@
 
 extern int * max_segments[MAX_BLKDEV];
 
-#define MAX_SECTORS 128
+#define MAX_SECTORS 254
 
 #define MAX_SEGMENTS MAX_SECTORS
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)