Re: fs: page cache wrongly left invalidated after revalidate_disk

From: MITSUNARI Shigeo
Date: Wed Oct 24 2012 - 17:13:24 EST


Jeff Moyer <jmoyer@xxxxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/