From 8b1c3857a80290efb2ccf112d3706c073e5f45db Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 28 May 2002 18:40:17 -0700 Subject: [PATCH] block plugging reworked/fixed This implements what we discussed, basically just maintaing a plug list from the block layer as a direct parallel to the tq_disk task queue we had before. blk_run_queues() now splices the blk_plug_list to avoid holding the blk_plug_lock across all the request_fn calls. --- include/linux/blkdev.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'include/linux/blkdev.h') diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index b9972fe4fc70..407b176d7dad 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -8,7 +8,6 @@ #include #include #include -#include #include @@ -137,11 +136,6 @@ struct blk_queue_tag { int max_depth; }; -struct blk_plug { - struct list_head list; - struct tasklet_struct task; -}; - /* * Default nr free requests per queue, ll_rw_blk will scale it down * according to available RAM at init time @@ -183,7 +177,7 @@ struct request_queue unsigned long bounce_pfn; int bounce_gfp; - struct blk_plug plug; + struct list_head plug_list; /* * various queue flags, see QUEUE_* below -- cgit v1.2.3