summaryrefslogtreecommitdiffstats
path: root/kernel/lockdep_proc.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2010-05-15 20:09:27 +0200
committerJens Axboe <jens.axboe@oracle.com>2010-05-21 20:01:02 +0200
commitfa4b9074cd8428958c2adf9dc0c831f46e27c193 (patch)
tree752103db616696fd7ba3374948fac9ebdf462d9e /kernel/lockdep_proc.c
parentf1ac2502e19c59e996242d406fcc60e4c563e8ce (diff)
downloadop-kernel-dev-fa4b9074cd8428958c2adf9dc0c831f46e27c193.zip
op-kernel-dev-fa4b9074cd8428958c2adf9dc0c831f46e27c193.tar.gz
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 <tj@kernel.org> Acked-by: David S. Miller <davem@davemloft.net> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'kernel/lockdep_proc.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud