Re: [dm-devel] [PATCH] device-mapper: fix bd_mount_sem corruption

2007-10-09 Thread Alasdair G Kergon
On Mon, Oct 08, 2007 at 07:31:49PM -0400, Jun'ichi Nomura wrote: > This patch fixes a bd_mount_sem counter corruption bug in device-mapper. [summary of follow-up] Affects 2.6.16 (and 2.6.15.5) upwards if someone removes a suspended device (which shouldn't happen during normal lvm2 operation).

Re: [dm-devel] [PATCH] device-mapper: fix bd_mount_sem corruption

2007-10-09 Thread Alasdair G Kergon
On Mon, Oct 08, 2007 at 07:31:49PM -0400, Jun'ichi Nomura wrote: This patch fixes a bd_mount_sem counter corruption bug in device-mapper. [summary of follow-up] Affects 2.6.16 (and 2.6.15.5) upwards if someone removes a suspended device (which shouldn't happen during normal lvm2 operation).

[PATCH] device-mapper: fix bd_mount_sem corruption

2007-10-08 Thread Jun'ichi Nomura
Hi, This patch fixes a bd_mount_sem counter corruption bug in device-mapper. thaw_bdev() should be called only when freeze_bdev() was called for the device. Otherwise, thaw_bdev() will up bd_mount_sem and corrupt the semaphore counter. struct block_device with the corrupted semaphore may remain

[PATCH] device-mapper: fix bd_mount_sem corruption

2007-10-08 Thread Jun'ichi Nomura
Hi, This patch fixes a bd_mount_sem counter corruption bug in device-mapper. thaw_bdev() should be called only when freeze_bdev() was called for the device. Otherwise, thaw_bdev() will up bd_mount_sem and corrupt the semaphore counter. struct block_device with the corrupted semaphore may remain