##############################################################################
# File based on 2.6.28
##############################################################################

#git-update.patch

##############################################################################
# Upstream changes since release
##############################################################################

git-update.patch

##############################################################################
# BASE v2.6.28-6127-g238c6d5
##############################################################################

##############################################################################
# Upstream
##############################################################################

## 3 patches pushed 2008/10/30 for 2.6.28-rc3
#dm-raid1-fix-do_failures.patch
#dm-snapshot-fix-register_snapshot-deadlock.patch
#dm-snapshot-wait-for-chunks-in-destructor.patch

## 6 patches pushed 2008/11/14 for 2.6.28-rc5
#dm-raid1-flush-workqueue-before-destruction.patch
#dm-stripe-fix-init-failure.patch
#dm-mpath-avoid-attempting-to-activate-null-path.patch
#dm-mpath-warn-if-args-ignored.patch
#dm-move-wake_up-into-dm_io_acct.patch
#dm-avoid-destroying-table-in-dm_any_congested.patch

## Upstream via another route
# block-dm-fix-segment-limits.patch

## 19 patches pushed 2009/01/05 for 2.6.29-rc1
#dm-table-drop-reference-at-unbind.patch
#dm-snapshot-change-yield-to-msleep.patch
#dm-log-fix-dm_io_client-leak-on-error-paths.patch
#dm-raid1-fix-error-count.patch
#dm-consolidate-target-deregistration-error-handling.patch
#dm-log-avoid-reinitialising-io_req-on-every-operation.patch
#dm-log-move-region_size-validation.patch
#dm-log-ensure-log-bitmap-fits-on-log-device.patch
#dm-ioctl-allow-dm_copy_name_and_uuid-to-return-only-one-field.patch
#dm-request-add-caches.patch
#dm-request-extend-target-interface.patch
#dm-support-barriers-on-simple-devices.patch
#dm-table-rework-reference-counting.patch
#dm-add-name-and-uuid-to-sysfs.patch
#dm-mpath-move-trigger_event-to-system-workqueue.patch
#dm-snapshot-separate-out-exception-store-interface.patch
#dm-snapshot-rename-struct-exception_store.patch
#dm-snapshot-split-out-exception-store-implementations.patch
#dm-snapshot-extend-exception-store-functions.patch

##############################################################################
# This section of patches gets imported into linux-next.
#
# NEXT_PATCHES_START
##############################################################################

dm-ioctl-validate-name-length-when-renaming.patch
dm-table-rework-reference-counting-fix.patch
dm-target-use-module-refcount-directly.patch
dm-target-remove-struct-tt_internal.patch

##############################################################################
# NEXT_PATCHES_END
##############################################################################

##############################################################################
# Patches already included in -mm from other sources
##############################################################################

##############################################################################
# This section of patches gets imported into -mm.
# (linux-next patches above get pulled in separately now.)
#
# MM_PATCHES_START
##############################################################################

# Experimental
dm-region_hash-change-primes.patch

dm-exception-store-separate-type-from-instance.patch

##############################################################################
# MM_PATCHES_END
##############################################################################

##############################################################################
# Patches from other sources included in -mm below the dm section
##############################################################################

##############################################################################
# Marker corresponding to end of -mm tree.
##############################################################################

mm

# An attempt to get UML to work with dm.
uml-fixes.patch

##############################################################################
# May need more work or testing, but close to being ready.
##############################################################################

# Support integrity profiles
dm-add-integrity-support.patch

# Under review
dm-raid1-add-is_remote_recovering-hook-for-clusters.patch

dm-exception-store-introduce-registry.patch
dm-exception-store-move-dm_target-pointer.patch
dm-exception-store-move-chunk_fields.patch
dm-exception-store-move-cow-pointer.patch
dm-snapshot-remove-dm_snap-header-use.patch
dm-snapshot-remove-dm_snap-header.patch
dm-snapshot-use-DMEMIT-macro-for-status.patch
dm-snapshot-move-ctr-parsing-to-exception-store.patch
dm-snapshot-cleanup-and-change-stuff-TO-BE-SPLIT.patch

# request-based mpath
03-rqdm-core-core-functions.patch
04-rqdm-core-enable-rqdm-at-alloc-dev-and-table-load.patch
05-rqdm-core-reject-limit-violating-io.patch

# convert multipath target to request-based
06-rqdm-mpath.patch

# block integrity stuff
07-integrity-clone-gfpmask.patch
08-integrity-gfpmask-dm.patch
09-rqdm-add-integrity.patch

# dynamic load balancers
rqdm-dlb-01-interface-change-for-queue-length-dlb.patch
rqdm-dlb-02-queue-length-dlb.patch
rqdm-dlb-03-interface-change-for-service-time-dlb.patch
rqdm-dlb-04-service-time-dlb.patch

dm-mpath-add-least-pending-path-selector.patch

# Snapshot refactoring
# Zumastor - make modular (cf. original mpath) with compile-time option?
dm-exception-store-supply-data-buffer-to-chunk_io.patch
dm-snap-add-lookup_complete_exception-function.patch
dm-exception-store-support-messages.patch
dm-exception-store-add-get_snapshot_info-function.patch
dm-snapshot-generalise-snapshot-hooks.patch
dm-snapshot-add-id-support.patch
dm-add-shared-exception-store.patch
dm-snap-add-shared-origin.patch
dm-snap-add-shared-snapshot.patch

# This one no longer applies
dm-raid1-separate-region_hash-interface-part2-to-be-split-and-fixed.patch

#dm-raid45-to-be-split-old.patch
dm-raid45-to-be-split.patch

# Don't think we want the next one
dm-raid1-increase-dm-io-pages.patch

#######################

# Something like this needed - and for other 'use' refs too.
dm-log-use-module-refcount-directly.patch

# Clustered mirror
dm-raid1-add-clustering.patch

# Will be needed by new replicator module
dm-export-dm_disk.patch

# An alternative to loop 
dm-loop.patch

# Unreviewed
dm-add-band-target.patch

dm-delay-unplug-queue.patch

# Needs more review 
dm-mpath-add-alua.patch

# Needs more thought: Should any of these be per-device not per-target?
dm-use-singlethread-workqueues.patch

# Bio split patches for 2.6.22 regressions - further changes still necessary.
dm-change-clone-bi_private-pointer-during-cleanup.patch
dm-split-bios-into-only-two-pieces.patch
dm-remove-struct-clone_info.patch
dm-tidy-io-initialisation-functions.patch
dm-handle-clone-reprocessing.patch

##############################################################################
# Under review - only try the remaining patches if you know what you're doing!
# Some don't even compile.
##############################################################################

# Need integrating and cleaning up
dm-memcache.patch
dm-extract-region_hash.patch
dm-iostats.patch
dm-throttle.patch

# Doesn't fix this properly yet
dm-snapshot-invalidate-from-workqueue.patch

# Won't be submitted - different solution being worked on in scsi
bio-sense-data.patch
dm-mpath-hw-handler-sense-data.patch

# Unfinished
dm-kcopyd-add-async-destruction-option.patch
dm-snapshot-release-memory-if-invalid.patch

# Awaiting a thorough review
dm-mpath-pg_timeout.patch

# Needs extracting from earlier version lower down
dm-snapshot-hold-primary_pe-reference.patch


dm-raid1-mempool-bug-workaround-reversion.patch

dm-raid1-read-balancing.patch

dm-userspace.patch

dm-mpath-default-to-scsi-err-handler.patch

# Needs solving a different way
dm-snapshot-chunksize-fix.patch

# Needs further tidying.  Add rate-limiting to messages?
dm-mpath-improve-err-mesgs.patch

# For testing: tidy, enhance & submit upstream
dm-flakey.patch

# Need re-working to take account of other changes made since.
dm-snapshot-fix-origin-writes.patch
dm-snapshot-tidy-snapshot_map-original.patch
dm-snapshot-add-workqueue-original.patch
dm-snapshot-track-snapshot-read-old.patch

# Superceded
# dm-log-check-region-size.patch