##############################################################################
# File based on 2.6.23
##############################################################################

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

git-update.patch

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

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

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

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

# Bug fixes - 2.6.24
dm-mpath-rdac-fix-init-race.patch
dm-ioctl-use-constant-struct-size.patch
dm-crypt-drop-device-ref-in-ctr-error-path.patch
dm-crypt-missing-kfree-in-ctr-error-path.patch
dm-raid1-fix-leakage.patch
dm-delay-fix-ctr-error-paths.patch
dm-delay-fix-status.patch
dm-fix-thaw_bdev.patch

# Cleanups - 2.6.24
dm-use-is_power_of_2.patch
dm-use-kzalloc.patch
kcopyd-use-mutex-instead-of-semaphore.patch
dm-tidy-bio_io_error-usage.patch
dm-ioctl-remove-vmalloc-void-cast.patch
dm-bio_list-macro-renaming.patch
dm-mpath-emc-fix-an-error-message.patch

# Crypt thread changes - 2.6.24
dm-crypt-use-per-device-singlethread-workqueues.patch
dm-crypt-add-post-processing-queue.patch

# Crypt preparation for async patch - 2.6.24
dm-crypt-tidy-pending.patch
dm-crypt-tidy-whitespace.patch
dm-crypt-tidy-labels.patch

# HP SW Hardware handler - 2.6.24
dm-mpath-add-retry-pg-init.patch
dm-mpath-add-hp-handler.patch
dm-mpath-hp-retry-if-not-ready.patch

# Preparation for improved error handling on mirrors - 2.6.24
dm-log-split-suspend.patch
dm-raid1-add-mirror_set-to-struct-mirror.patch

# ABOVE 25 patches sent to Linus 2007/10/12

# Extended message passing to userspace - 2.6.24
dm-export-name-and-uuid.patch
dm-add-uevent-to-core.patch
dm-uevent-generate-events.patch
dm-mpath-send-uevents.patch

# ABOVE 4 patches sent to Linus 2007/10/17 (plus updated dm-crypt-tidy-whitespace.patch)

# Cleanup ioctl & compat code - 2.6.25
dm-ioctl-remove-lock_kernel.patch
dm-ioctl-move-compat-code.patch

# Improved error handling on mirrors (patches under review) - 2.6.25?
dm-raid1-handle-recovery-write-failures.patch

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

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

#git-gccbug.patch

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

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

# Separate and document anything in this patch
dm-assorted-cleanups.patch

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

# Improved error handling on mirrors - 2.6.24?
dm-raid1-handle-write-failures.patch
dm-raid1-report-fault-status.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

#dm-netlink.patch
#dm-netlink-add-to-core.patch
#dm-netlink-mpath.patch

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

# Support async cyphers - more clean-ups needed - 2.6.25?
dm-crypt-add-async-support-1.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

# 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

# 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

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

# 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

# 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