]> Git Repo - linux.git/commit
[PATCH] dm: add DMF_FREEING
authorJeff Mahoney <[email protected]>
Mon, 26 Jun 2006 07:27:23 +0000 (00:27 -0700)
committerLinus Torvalds <[email protected]>
Mon, 26 Jun 2006 16:58:34 +0000 (09:58 -0700)
commitfba9f90e568e17c326257ee293207b75880b39d6
tree6dc982f7c7923105adf8fb55f1ca0925be3ecdab
parentf32c10b09940cffc3620ce111315ec44343fd3ca
[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 <[email protected]>
Signed-off-by: Alasdair G Kergon <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/md/dm.c
This page took 0.052566 seconds and 4 git commands to generate.