##############################################################################
# File based on 2.6.27-rc7
##############################################################################

#git-update.patch

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

#git-update.patch

##############################################################################
# BASE v2.6.27-rc8-16-gd3a47e8
##############################################################################

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

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

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

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

# Fixes for 2.6.27
#dm-always-allow-one-page-in-dm_merge_bvec.patch
#dm-cope-with-access-beyond-end-of-device-in-dm_merge_bvec.patch
#dm-mpath-add-missing-path-switching-locking.patch

# Minor fixes
dm-mpath-use-more-error-codes.patch
dm-mpath-remove-is_active-from-struct-dm_path.patch
dm-raid1-kcopyd-should-stop-on-error-if-errors-handled.patch
dm-exception-store-introduce-area_location-function.patch
dm-exception-store-use-chunk_t-for_areas.patch

# Fix async crypt bio splitting
dm-crypt-tidy-inc-pending.patch
dm-crypt-tidy-crypt-alloc.patch
dm-crypt-tidy-write-loop-pending.patch
dm-crypt-remove-inc_pending-from-write_io_submit.patch
dm-crypt-move-dec_pending-on-error-into-write_io_submit.patch
dm-crypt-fix-async-inc_pending.patch
dm-crypt-tidy-ctx-pending.patch
dm-crypt-avoid-unnecessary-wait-when-splitting-bio.patch

# Target header cleanup
dm-export-struct-dm_dev.patch
dm-publish-dm_get_mapinfo.patch
dm-publish-dm_table_unplug_all.patch
dm-publish-dm_vcalloc.patch

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

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

# Under review
dm-kcopyd-avoid-queue-shuffle.patch
#dm-raid1-separate-region_hash-interface.patch
#dm-raid1-separate-region_hash-interface-part2.patch
#dm-raid1-increase-dm-io-pages.patch

# Remove dm.h from targets
dm-publish-array_too_big.patch
dm-remove-dm-header-from-targets.patch

# Fix async crypt bio splitting
#dm-crypt-tidy-sector.patch
#dm-raid45-to-be-split.patch
#dm-crypt-fix-async-split.patch
#dm-crypt-remove-waitqueue.patch

dm-exception-store-fix-misordered-writes.patch

# Clustered mirror
#dm-raid1-add-is_remote_recovering-hook-for-clusters.patch
#dm-raid1-add-clustering.patch

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

# An alternative to loop 
dm-loop.patch

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

# Avoid bio_endio recursion
avoid-endio-recursion.patch

# Limit irq nesting
limit-irq-nesting.patch

# Fix memory corruption
dm-snapshot-fix-primary-pe-race.patch

# Smaller changes for snapsohts
dm-snapshot-remove-unused-thread.patch
dm-snapshot-remove-unused-last-percent-variable.patch

# Fix forgotten queue unplugs
dm-crypt-unplug-queue.patch
dm-delay-unplug-queue.patch
dm-mpath-unplug-queue.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-32bit-chunk-size.patch

# Fix the data coruption with different chunk sizes
dm-snapshot-rework-origin-write.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

# 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

# Drop virtual merge accounting
drop-virtual-merge-accounting.patch
remove-bio-hw-segments.patch
remove-blk_queue_max_hw_segments.patch
remove-mmc-max_hw_segs.patch

# Fix fsync livelock
bit-mutexes.patch
mm-livelock-fix3.patch
mm-fix-fsync-vs-write.patch

# New snapshots
dm-bufio.patch
#dm-multisnapshot.patch

# Test
#dm-snapshot-merge-test.patch