akshaykarle/kvm-tmem — Issue #1: Cleancache pool destruction invokation failure from kvm guests
Author: akshaykarle
Created: 2012-02-23 06:50:54+00:00
State: open

What steps will reproduce the problem?
1. Start a guest with cleancache enabled.
2. Cleancache pools for each fs will be created.
3. On initiating the shutdown of the guest, the last cleancache pool(most probably the one assigned to /root's fs) is not destroyed.

What is the expected output? What do you see instead?
In the guest we have mounted filesystems resulting in creation of cleancache pools and unmounting them successfully destroys the appropriate cleancache pool. So, manual mounts and umounts are working properly.

However, on initiating the shutdown a call for the deactivate_lock_super is made which ultimately leads to destroy the superblock, and an cleanacache_invalidate_fs function is called to destroy the tmem pool associated with that superblock.
We have observed that all but the last cleancache pools are being destroyed successfully.
The problem most probably is that kvm is shutting down the guest before unmounting all its fs's. But this still remains to be tested.