[dm-devel] [PATCH] dm missing bdput/thaw_bdev at removal

Jun'ichi Nomura j-nomura at ce.jp.nec.com
Fri Feb 24 00:05:09 UTC 2006


Hello,

The following script stalls at the 2nd suspend.
It's because bdput() isn't called for the suspended_bdev.

So the inode with bd_mount_sem held is just reused
in the next mapped_device device.
Then dm_suspend will try to freeze_bdev and wait forever.

Attached patch fixes this problem.

------------------------------------------------------------
#!/bin/sh -x

map=a
while true; do
  dmsetup create $map --notable
  dmsetup suspend $map
  dmsetup remove $map
done
------------------------------------------------------------

-- 
Jun'ichi Nomura, NEC Solutions (America), Inc.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dm-missing-bdput.patch
Type: text/x-patch
Size: 638 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/dm-devel/attachments/20060223/a5918d12/attachment.bin>


More information about the dm-devel mailing list