##############################################################################
# File based on 2.6.22
##############################################################################

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

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

# Clean up earlier patches
dm-bio_list-prefetch-removal.patch
dm-use-kmem_cache-macro.patch
dm-delay-cleanup.patch
dm-remove-duplicate-module-name-from-error-msgs.patch

# Fixes - 2.6.22 regressions
dm-raid1-fix-status.patch
dm-io-fix-panic-on-large-request.patch
dm-snapshot-fix-invalidation-deadlock.patch

# Other fixes
dm-snapshot-permit-invalid-activation.patch
dm-raid1-clear-region-outside-spinlock.patch
dm-disable-barriers.patch

# Enhancements
dm-add-ratelimit-logging-macros.patch

# Improved error-handling on mirrors
dm-raid1-handle-resync-failures.patch
dm-raid1-handle-log-failure.patch

# Multipath RDAC support 
dm-mpath-rdac.patch

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

##############################################################################
# This section of patches gets imported into -mm.
#
# MM_PATCHES_START
##############################################################################

# Bug fixes
dm-crypt-drop-device-ref-in-ctr-error-path.patch
dm-delay-fix-ctr-error-paths.patch

# Extended message passing to userspace 
dm-netlink.patch
dm-netlink-add-to-core.patch
dm-netlink-mpath.patch

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

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

kcopyd-use-mutex-instead-of-semaphore.patch
dm-fix-memory-leak-in-dm_create_persistent-when-starting-metadata-update-thread-fails.patch
git-gccbug.patch

##############################################################################
# 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.
##############################################################################


# Improved error handling on mirrors - 2.6.23 or .24
dm-raid1-handle-recovery-write-failures.patch
dm-raid1-handle-write-failures.patch
dm-raid1-report-fault-status.patch
dm-log-split-suspend.patch
dm-raid1-fix-EIO-after-log-failure.patch
dm-raid1-handle-recovery-read-failures.patch
dm-raid1-handle-read-failures.patch
dm-raid1-version-bump.patch
dm-raid1-mark-and-clear-nosync-writes.patch

# Fixes - needs direct evidence of usefulness
dm-merge-max_hw_sector.patch

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

# Or use struct bio_list flush_bios = { }; directly?
dm-bio_list-macro-renaming.patch

# Bio split patches for 2.6.22 regressions - further changes still necessary.
dm-change-clone-bi_private-pointer-during-cleanup.patch
dm-tidy-bio_io_error-usage.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

# An attempt to support larger bios for better performance with dm over md
# - Some performance issues to resolve.
dm-md-merge_bvec_fn-with-separate-bdev-and-sector.patch
dm-introduce-merge_bvec_fn.patch
dm-linear-add-merge.patch
dm-table-remove-merge_bvec-sector-restriction.patch

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

# An alternative to loop
dm-loop-config.patch
dm-loop.patch

# 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

# Need fixing up
dm-crypt-add-post-processing-queue.patch
dm-crypt-add-async-support.patch
dm-crypt-use-crypto-ablkcipher-interface.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


# Need more work before this one from -mm can be applied:
# - bio splitting memory issues
md-dm-reduce-stack-usage-with-stacked-block-devices.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-reads.patch