diff options
author | Jeff Mahoney <jeffm@suse.com> | 2006-06-26 00:27:23 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-26 09:58:34 -0700 |
commit | fba9f90e568e17c326257ee293207b75880b39d6 (patch) | |
tree | 6dc982f7c7923105adf8fb55f1ca0925be3ecdab /drivers/md/dm-ioctl.c | |
parent | f32c10b09940cffc3620ce111315ec44343fd3ca (diff) | |
download | op-kernel-dev-fba9f90e568e17c326257ee293207b75880b39d6.zip op-kernel-dev-fba9f90e568e17c326257ee293207b75880b39d6.tar.gz |
[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>
Diffstat (limited to 'drivers/md/dm-ioctl.c')
0 files changed, 0 insertions, 0 deletions