Messages in this thread | | | Date | Thu, 25 Oct 2012 06:11:17 +0900 | From | MITSUNARI Shigeo <> | Subject | Re: fs: page cache wrongly left invalidated after revalidate_disk |
| |
Jeff Moyer <jmoyer@redhat.com> writes:
> rescan_partitions (called in the bdev open path) should reset > bd_invalidated. I think you need to dig into why that isn't happening.
rescan_partitions() and invalidate_partitions() reset bd_invalidated after calling check_disk_size_change(). But revalidate_disk() does not it.
So, I think bdev->bd_invalidated = 0 is necessary for revalidate_disk(), or check_disk_size_change() should be it more simply.
Yours, Shigeo
| |