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

# More fixes for 2.6.28
dm-table-drop-reference-at-unbind.patch

# For 2.6.29
dm-consolidate-target-deregistration-error-handling.patch
#dm-support-barriers-on-simple-devices.patch

# Request-based mpath
dm-request-add-caches.patch
dm-request-extend-target-interface.patch

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

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

# Fix needing wider review
dm-snapshot-yield-to-msleep-1.patch
dm-table-rework-reference-counting.patch
dm-table-rework-reference-counting-fix.patch

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

# Experimental
dm-region_hash-change-primes.patch

# Snapshot refactoring
#dm-snapshot-separate-out-exception-store-interface.patch
#dm-snapshot-rename-struct-exception_store.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

# An alternative to loop
dm-loop.patch

dm-delay-unplug-queue.patch

##############################################################################
# Mikulas' patches
##############################################################################

# Avoid bio_endio recursion
avoid-endio-recursion.patch

# Limit irq nesting
limit-irq-nesting.patch

# Remove unused thread
dm-snapshot-remove-unused-thread.patch

# Fix forgotten queue unplugs
dm-crypt-unplug-queue.patch
dm-mpath-unplug-queue.patch

# Fix the deadlock that bdev_disk() is called while suspended
dm-bdev-rename-suspended_bdev-to-bdev.patch
dm-bdev-keep-bdev-always-referenced.patch

# Optimize generic dm request handling
#dm-move-bio-to-dm-target-io.patch

# Fix crashes in snapshots
dm-kcopyd-fix.patch
dm-snap-use-err-ptr.patch
dm-snap-check-complete-exception-after-lock-drop.patch

# Various chunk size patches
dm-snapshot-check-if-chunk-size-not-specified.patch
dm-snapshot-set-ondisk-chunk-size-if-the-user-didnt-specify-it.patch
dm-snapshot-allow-chunksize-smaller-than-pagesize.patch
dm-snapshot-validate-chunksize-at-one-place.patch
dm-snapshot-drop-unneeded-and.patch
dm-snapshot-32bit-chunk-size.patch

# Fix the data coruption with different chunk sizes
dm-snapshot-rework-origin-write.patch

# Prepare for merging
dm-snapshot-remove-redundant-valid-test.patch
dm-snapshot-find-min-chunksize-function.patch
dm-exception-store-return-zero-when-empty.patch
dm-snapshot-dont-insert-before-existing-chunk.patch
dm-snapshot-dm_consecutive_chunk_count_dec.patch

# Exception store handover: this allows reloading of the snapshot table
dm-exception-store-handover-method.patch
dm-snapshot-exception-handover.patch
dm-exception-store-dont-read-metadata-if-going-to-handover.patch

# The snapshot merging
dm-exception-store-merge-methods.patch
dm-exception-store-merge-accounting.patch
dm-snapshot-target-merge.patch
dm-snapshot-target-merge-no-new-alloc.patch
dm-snapshot-find-merging-snapshot.patch
dm-snapshot-no-more-merging-snapshots.patch
dm-snapshot-merge-process.patch
dm-snapshot-merge-interlock-writes.patch
dm-snapshot-merge-track-writes.patch
dm-snapshot-merge-make-exceptions-in-other-snapshots-when-merging.patch
dm-snapshot-merge-make-exceptions-in-other-snapshots-if-remapped-to-origin.patch
dm-snapshot-merge-redirect-to-origin-if-invalidated.patch