From: Tejun Heo Date: Sat, 15 May 2010 18:09:27 +0000 (+0200) Subject: buffer: make invalidate_bdev() drain all percpu LRU add caches X-Git-Tag: v2.6.35-rc1~442^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa4b9074cd8428958c2adf9dc0c831f46e27c193;p=pandora-kernel.git buffer: make invalidate_bdev() drain all percpu LRU add caches invalidate_bdev() should release all page cache pages which are clean and not being used; however, if some pages are still in the percpu LRU add caches on other cpus, those pages are considered in used and don't get released. Fix it by calling lru_add_drain_all() before trying to invalidate pages. This problem was discovered while testing block automatic native capacity unlocking. Null pages which were read before automatic unlocking didn't get released by invalidate_bdev() and ended up interfering with partition scan after unlocking. Signed-off-by: Tejun Heo Acked-by: David S. Miller Signed-off-by: Jens Axboe --- Reading git-diff-tree failed