Jeff Mahoney fba9f90e56 [PATCH] dm: add DMF_FREEING
There is a chicken and egg problem between the block layer and dm in which the
gendisk associated with a mapping keeps a reference-less pointer to the
mapped_device.

This patch uses a new flag DMF_FREEING to indicate when the mapped_device is
no longer valid.  This is checked to prevent any attempt to open the device
from succeeding while the device is being destroyed.

[akpm: too late for 2.6.17 - suitable for 2.6.17.x after it has settled]

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-06-26 09:58:34 -07:00
..
2006-03-27 08:44:58 -08:00
2006-03-27 08:44:59 -08:00
2006-03-27 08:44:58 -08:00
2006-06-26 09:58:18 -07:00
2006-03-27 08:45:03 -08:00
2006-06-26 09:58:34 -07:00
2006-03-27 08:44:59 -08:00
2006-03-27 08:45:03 -08:00
2006-04-02 13:31:42 +02:00