##############################################################################
# File based on 2.6.30-rc2
##############################################################################

git-update.patch

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

##############################################################################
# BASE v2.6.30-rc2
##############################################################################

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

## For 2.6.29 - 5 patches sent to Linus 2009/03/16.
#dm-ioctl-validate-name-length-when-renaming.patch
#dm-table-rework-reference-counting-fix.patch
#dm-io-respect-BIO_MAX_PAGES-limit.patch
#dm-crypt-fix-kcryptd_async_done-parameter.patch
#dm-crypt-wait-for-endio-to-complete-before-destruction.patch

## 36 patches sent upstream 2009/04/02 for 2.6.30
## Fixes
#dm-preserve-bi_io_vec-when-resubmitting-bios.patch
#dm-raid1-switch-read_record-from-kmalloc-to-slab-to-save-memory.patch
#dm-io-make-sync_io-uninterruptible.patch
#dm-snapshot-refactor-__find_pending_exception.patch
#dm-snapshot-avoid-dropping-lock-in-__find_pending_exception.patch
#dm-snapshot-avoid-having-two-exceptions-for-the-same-chunk.patch
#dm-target-use-module-refcount-directly.patch
#dm-path-selector-use-module-refcount-directly.patch
#dm-table-fix-upgrade-mode-race.patch
#
## Changes
#dm-target-remove-struct-tt_internal.patch
#dm-crypt-use-kzfree.patch
#
#dm-log-use-standard-kernel-module-refcount.patch
#dm-log-remove-struct-dm_dirty_log_internal.patch
#
#dm-exception-store-separate-type-from-instance.patch
#dm-raid1-add-is_remote_recovering-hook-for-clusters.patch
#dm-exception-store-introduce-registry.patch
#dm-exception-store-move-dm_target-pointer.patch
#dm-exception-store-move-chunk_fields.patch
#dm-exception-store-move-cow-pointer.patch
#dm-snapshot-remove-dm_snap-header-use.patch
#dm-snapshot-remove-dm_snap-header.patch
#dm-snapshot-use-DMEMIT-macro-for-status.patch
#dm-snapshot-move-ctr-parsing-to-exception-store.patch
#dm-snapshot-move-status-to-exception-store.patch
#dm-snapshot-persistent-fix-dtr-cleanup.patch

# Barrier work
#dm-bio-list-add-bio_list_add_head.patch
#dm-remove-unnecessary-work-queue-type-field.patch
#dm-remove-unnecessary-work-queue-context-field.patch
#dm-remove-unnecessary-struct-dm_wq_req.patch
#dm-rename-__split_bio.patch
#dm-move-bio_io_error-into-__split_and_process_bio.patch
#dm-merge-__flush_deferred_io-into-caller.patch
#dm-allow-uninterruptible-wait-for-pending-io.patch
#dm-merge-pushback-and-deferred-bio-lists.patch
#dm-move-wait-queue-declaration.patch
#dm-set-queue-ordered-mode.patch

## 10 patches sent to Linus 2009/04/08 for 2.6.30-rc2
## Support integrity profiles
#dm-add-integrity-support.patch
#dm-remove-limited-barrier-support.patch
#dm-rearrange-dm_wq_work.patch
#dm-split-DMF_BLOCK_IO-flag-into-two.patch
#dm-simplify-dm_request-loop.patch
#dm-rework-queueing-and-suspension.patch
#dm-remove-dm_request-loop.patch
#dm-implement-basic-barrier-support.patch
#dm-kcopyd-prepare-for-callback-race-fix.patch
#dm-kcopyd-fix-callback-race.patch

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

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

# Cleanup - 2.6.30 - via Jens
dm-move-bio_list-fns-to-bio_h.patch

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

##############################################################################
# This section of patches gets imported into -mm.
# (linux-next patches above get pulled in separately now.)
#
# MM_PATCHES_START
##############################################################################

dm-ioctl-support-cookies-for-udev.patch

# Experimental
dm-region_hash-change-primes.patch

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

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

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

#dm-table-fix-alignment-to-hw_sector.patch
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-exception-store-generalize-table-args.patch
#dm-snapshot-new-ctr-table-format.patch
#dm-snapshot-cleanup.patch

dm-raid1-add-clustering.patch
dm-add-ioband.patch

# request-based mpath
dm-add-request-based-facility.patch
dm-permit-request-based-facility.patch
dm-enforce-new-queue-limits.patch

# convert multipath target to request-based
dm-mpath-change-to-be-request-based.patch

# block integrity stuff
#block-add-gfp_mask-to-bio_integrity_clone.patch
#dm-add-gfp_mask-to-bio_integrity_clone.patch
#dm-retain-integrity-request-based-clones.patch

# dynamic load balancers
dm-mpath-add-start_io-hook-to-path-selectors.patch
dm-mpath-add-queue-length-load-balancer.patch
dm-mpath-add-size-to-path-selector-interface.patch
dm-mpath-add-service-time-load-balancer.patch

# raid45 - no longer compiles
dm-raid1-separate-region_hash-interface-part2-to-be-split-and-fixed.patch
dm-raid45-to-be-split.patch

#######################
# End of patches that apply cleanly and are under active review.
end

#dm-mpath-add-least-pending-path-selector.patch

# Snapshot refactoring
# Zumastor - make modular (cf. original mpath) with compile-time option?
#dm-exception-store-supply-data-buffer-to-chunk_io.patch
#dm-snap-add-lookup_complete_exception-function.patch
#dm-exception-store-support-messages.patch
#dm-exception-store-add-get_snapshot_info-function.patch
#dm-snapshot-generalise-snapshot-hooks.patch
#dm-snapshot-add-id-support.patch
#dm-add-shared-exception-store.patch
#dm-snap-add-shared-origin.patch
#dm-snap-add-shared-snapshot.patch

# Don't think we want the next one
dm-raid1-increase-dm-io-pages.patch

# Something like this needed - and for other 'use' refs too.
dm-log-use-module-refcount-directly.patch

# Clustered mirror
dm-raid1-add-clustering-old.patch

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

# An alternative to loop 
dm-loop.patch

dm-delay-unplug-queue.patch

# Needs more review 
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-read-old.patch

# Superceded
# dm-log-check-region-size.patch