summaryrefslogtreecommitdiff
path: root/include/linux/blkdev.h
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2003-07-04 19:36:03 -0700
committerLinus Torvalds <torvalds@home.osdl.org>2003-07-04 19:36:03 -0700
commit3abbd8ff39f3da75117a35ac50020818ff3ef7a6 (patch)
tree18dd9eb289bc3a60a8ba9a3fe0d7a2ccdc779937 /include/linux/blkdev.h
parent3faa61fe2ece423aeda58d42f2b8c998cfb9fa3a (diff)
[PATCH] bring back the batch_requests function
From: Nick Piggin <piggin@cyberone.com.au> The batch_requests function got lost during the merge of the dynamic request allocation patch. We need it for the anticipatory scheduler - when the number of threads exceeds the number of requests, the anticipated-upon task will undesirably sleep in get_request_wait(). And apparently some block devices which use small requests need it so they string a decent number together. Jens has acked this patch.
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r--include/linux/blkdev.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 786ea3563752..621a5b042a9c 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -27,6 +27,7 @@ struct request_pm_state;
struct request_list {
int count[2];
mempool_t *rq_pool;
+ wait_queue_head_t wait[2];
};
/*