##############################################################################
# File based on 2.6.24
##############################################################################

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

git-update.patch

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

# Fixes - 2.6.24-rc6
# - Following 6 sent to Linus 2007/12/13
#dm-table-detect-io-beyond-device.patch
#dm-mpath-hp-requires-scsi.patch
#dm-crypt-fix-write-endio.patch
#dm-trigger-change-uevent-on-rename.patch
#dm-merge-max_hw_sector.patch
#dm-crypt-use-bio_add_page.patch

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

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

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

# Fixes - 2.6.25
dm-add-missing-memory-barrier-to-dm_suspend.patch

# Cleanups - 2.6.25
dm-mark-function-lists-static.patch
dm-ioctl-remove-lock_kernel.patch
dm-ioctl-move-compat-code.patch
dm-table-use-list_for_each.patch
dm-table-remove-unused-variable.patch
dm-table-remove-unused-total.patch
dm-snapshot-use-rounddown_pow_of_two.patch
dm-convert-suspend_lock-semaphore-to-mutex.patch
dm-snapshot-use-uninitialized_var.patch
dm-table-use-uninitialized_var.patch
dm-ioctl-use-uninitialized_var.patch
dm-tidy-alloc_dev-labels.patch
dm-refactor-deferred-bio_list-processing.patch
dm-tidy-dm_suspend.patch
dm-split-dm_suspend-io_lock-hold-into-two.patch
dm-refactor-dm_suspend-completion-wait.patch
dm-targets-no-longer-experimental.patch

# Clean-ups to prepare for async cyphers - 2.6.25
dm-mpath-add-missing-static.patch
dm-crypt-move-convert_context-inside-dm_crypt_io.patch
dm-crypt-remove-unnecessary-crypt_context-write-parm.patch
dm-crypt-move-error-setting-outside-crypt_dec_pending.patch
dm-crypt-tidy-crypt_endio.patch
dm-crypt-adjust-io-processing-functions.patch
dm-crypt-move-queue-functions.patch
dm-crypt-store-sector-mapping-in-dm_crypt_io.patch
dm-crypt-abstract-crypt_write_done.patch
dm-crypt-introduce-crypt_write_io_loop.patch
dm-crypt-tidy-io-ref-counting.patch
dm-crypt-extract-scatterlist-processing.patch
dm-crypt-add-async-request-mempool.patch

# Switch to async crypt - 2.6.25?
dm-crypt-add-completion-for-async.patch
dm-crypt-prepare-async-callback-fn.patch
dm-crypt-use-async-crypto.patch

# Previous versions - check none of this got lost
# Bug report perhaps caused by next patch - lkml Re: 2.6.24-rc2-mm1: kcryptd vs lockdep
# dm-crypt-move-bio-submission-to-thread.patch
#dm-crypt-add-async-support-2.patch
#dm-crypt-add-async-support-3.patch
#dm-crypt-add-async-support-4.patch
#dm-crypt-add-async-support-5.patch
#dm-crypt-add-async-support-6.patch
#dm-crypt-use-crypto-ablkcipher-interface.patch
#dm-crypt-use-crypto-ablkcipher-interface-6.patch

# Preparations for barrier support - 2.6.25
dm-move-deferred-bio-flushing-to-workqueue.patch

# The following patches need more testing - 2.6.25?
dm-log-auto-load-modules.patch
dm-stripe-trigger-event-on-failure.patch
dm-stripe-enhanced-status-return.patch
dm-snapshot-combine-consecutive-exceptions-in-memory.patch

# Improved error handling on mirrors - 2.6.25?
dm-raid1-handle-write-failures.patch
dm-raid1-handle-recovery-failures.patch
dm-raid1-fix-EIO-after-log-failure.patch
dm-raid1-handle-read-failures.patch
dm-raid1-report-fault-status.patch
#dm-raid1-mark-and-clear-nosync-writes.patch

# An alternative to loop - 2.6.26?
dm-loop.patch
#dm-loop-config.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.
##############################################################################

# An attempt to support larger bios for better performance with dm over md - 2.6.25
# - first patch via Jens; then submit the other three
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

# Unreviewed
dm-add-band-target.patch

# Needs more review - 2.6.25?
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-reads.patch