Red Hat Bugzilla – Bug 216199
kernel dm: dmsetup "remove" leaves dm_mod in use
Last modified: 2013-02-28 23:04:23 EST
Description of problem:
I'm not sure whether this bug should go to kernel or
to device-mapper. I'm adding firstname.lastname@example.org to Cc
Version-Release number of selected component (if applicable):
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
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
dm_mod usage should be 0 after all devices are removed
Created attachment 141517 [details]
This script adds and removes map to show the growing usage od dm_mod
Actually lvm-team@ now.
Sounds like the known bug patched here:
Fixed in upstream 2.6.19 kernel, not yet in fc6.
Fixed in FC6 kernel 2.6.19-1.2895.