From: Tejun Heo Date: Thu, 23 Jun 2005 07:08:49 +0000 (-0700) Subject: [PATCH] blk: remove blk_queue_tag->real_max_depth optimization X-Git-Tag: v2.6.13-rc1~68^2~471 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa72b903f75e4f0f0b2c2feed093005167da4023;p=pandora-kernel.git [PATCH] blk: remove blk_queue_tag->real_max_depth optimization blk_queue_tag->real_max_depth was used to optimize out unnecessary allocations/frees on tag resize. However, the whole thing was very broken - tag_map was never allocated to real_max_depth resulting in access beyond the end of the map, bits in [max_depth..real_max_depth] were set when initializing a map and copied when resizing resulting in pre-occupied tags. As the gain of the optimization is very small, well, almost nill, remove the whole thing. Signed-off-by: Tejun Heo Acked-by: Jens Axboe Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed