From: NeilBrown Date: Tue, 4 Mar 2008 22:29:30 +0000 (-0800) Subject: md: reduce CPU wastage on idle md array with a write-intent bitmap X-Git-Tag: v2.6.25-rc4~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8311c29d40235062a843f4a8e8a70a44af6fe4c9;p=pandora-kernel.git md: reduce CPU wastage on idle md array with a write-intent bitmap On an md array with a write-intent bitmap, a thread wakes up every few seconds and scans the bitmap looking for work to do. If the array is idle, there will be no work to do, but a lot of scanning is done to discover this. So cache the fact that the bitmap is completely clean, and avoid scanning the whole bitmap when the cache is known to be clean. Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed