##############################################################################
# File based on 2.6.26
##############################################################################

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

#dm-crypt-use-cond_resched.patch
dm-mpath-free-path-selector-on-invalid-args.patch

dm-log-make-dm_dirty_log-init-and-exit-static.patch
dm-io-remove-struct-padding.patch
dm-mpath-return-parameter-error.patch

dm-mpath-fix-test-for-reinstate_path.patch
dm-mpath-use-more-error-codes.patch
dm-snapshot-track-snapshot-reads.patch
dm-snapshot-fix-race-during-exception-creation.patch

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

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

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

mm

# An alternative to loop 
dm-loop.patch

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

# Stack overflow patches
# ----------------------
# Debug sparc64 stack overflow
sparc64-overflow-backtrace.patch

# Inline trivial functions to conserve stack space
dm-kcopyd-inline-wake.patch
dm-kcopyd-inline-dispatch_job.patch

# Avoid bio_endio recursion
avoid-endio-recursion.patch
raid5-use-bio_endio.patch

# Limit irq nesting
limit-irq-nesting.patch

# A100U2W Sparc support
a100u2w-support-big-endian.patch
a100u2w-udelay-when-loading-firmware.patch
a100u2w-check-for-sg-table-overflow.patch
a100u2w-handle-iommu-error.patch
#drop-virtual-merge-accounting.patch
sparc64-disable-virtual-merge-accounting.patch
#merge-test.patch

# Interrupt stack by Dave Miller
#sparc-intstack.patch

# Fix read-snapshot vs write-origin race condition
#dm-snapshot-track-snapshot-reads.patch
#dm-snapshot-fix-race-during-exception-creation.patch

# Smaller changes for snapsohts
dm-snapshot-per-snapshot-mempool.patch
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
dm-exception-store-64-bit-values.patch
dm-exception-store-use-sector-div.patch

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

# Fix the race condition when updating on-disk exception table
dm-exception-store-area_location-function.patch
dm-exception-store-fix-misordered-writes.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

# Debug messages. Not meant for production
dm-snapshot-merge-test.patch