Description of problem:
I'm not sure whether this bug should go to kernel or
to device-mapper. I'm adding agk@redhat.com to Cc
Version-Release number of selected component (if applicable):
kernel-2.6.18-1.2849.fc6
device-mapper-1.02.07-3
How reproducible:
Always
Steps to Reproduce:
1. Make any device (loopback, /dev/sdaX, whatever)
2. create a device, for instance a 1-1 linear copy
3. remove a device
4. Repeat 2 and 3 several times, and then see the usage
of dm_mod. It's usually O(2*number-of-steps).
Please see the attached test script
Actual results:
lsmod|grep dm_mod indicates growing usage
modprobe -r dm_mod fails (even if dm_crypt, dm_mirror etc are removed)
After several tries dmsetup remove fails leaving the device busy
Please see the result of test script
Expected results:
dm_mod usage should be 0 after all devices are removed
Additional info: