[dm-devel] [PATCH v2 0/2] dm: restrict conflicting table loads and improve queue initialization
Mike Snitzer
snitzer at redhat.com
Mon May 24 23:46:33 UTC 2010
A mapped_device now has a specific immutable type (md->type) that is
set during the initial table_load (see: patch 1/2).
The DM device's request_queue will only have an elevator allocated and
exposed via sysfs if it is request-based (see: patch 2/2).
Please see the individual patch headers for more details.
(Kiyoshi, if you approve please reply with your "Acked-by" :)
This patchset is based on agk's DM "editing" tree:
http://www.kernel.org/pub/linux/kernel/people/agk/patches/2.6/editing/
(apply all patches listed in the series file up to NEXT_PATCHES_END)
This also patchset depends on the following linux-2.6-block.git
'for-linus' branch commits:
01effb0 block: allow initialization of previously allocated request_queue
e36f724 block: Adjust elv_iosched_show to return "none" for bio-based DM
I've made a full quilt series available here (builds on 2.6.34):
http://people.redhat.com/msnitzer/patches/dm-queue-init/latest/
A monolithic patch is also available here:
http://people.redhat.com/msnitzer/patches/dm-queue-init/latest/monolithic.patch
I welcome all comments/review.
v2 changes:
- removed do_resume and table_clear interlock
- rebased to agk's latest "editing" tree
- dropped the dm_get_verified_mdptr and find_device_noinit patches that
were at the end of v1; can revisit that code duplication cleanup later
Mike Snitzer (2):
dm: prevent table type changes after initial table load
dm: only initialize full request_queue for request-based device
drivers/md/dm-ioctl.c | 40 ++++++++++
drivers/md/dm.c | 189 ++++++++++++++++++++++++++++++++++++++++--------
drivers/md/dm.h | 8 ++
3 files changed, 205 insertions(+), 32 deletions(-)
More information about the dm-devel
mailing list