[dm-devel] [PATCH 1/2] dmcache: flush superblock stats when retrieving status info

Joe Thornber thornber at redhat.com
Fri May 10 10:10:05 UTC 2013


On Thu, May 09, 2013 at 01:44:38PM -0700, Darrick J. Wong wrote:
> When userspace queries dmcache for stats info, we should ensure that all the
> metadata gets flushed out of memory to disk.  The current code neglects to
> update the disk copy of the hit/miss counters.

Nack, I'm afraid.  The commit is there purely to make sure the free
metadata blocks reported from the status are as high as possible.
[When a transaction is open we have to treat all blocks from the
previous transaction as allocated to allow rollback.]




More information about the dm-devel mailing list