[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[dm-devel] Merging for old snapshots


The last version of snapshot-merging patches is at

The patches that hasn't been accepted so far:

# Remove unused thread
--- there is no plan to use the thread for anything, remove it.

Section "# Various chunk size patches"
--- very small fixes or optimizations, fix some misbehavior in situations 
that lvm never does (only visible if someone loads the table by hand).

# Fix the data coruption with different chunk sizes 
--- this is the first big patch (the merging stuff depends on it, so it is 
compulsory to apply it). It fixes the data corruption with multiple 
snapshots with different chunk sizes. It removes completely primary_pe 
pointer and links between exceptions, because this logic is flawed by 

The logic of the patch: if there are multiple pending exceptions that 
conflict with the bio, the bio is linked to any one of them. After the 
pending exception completes, the bio is rechecked again (this is the 
change from current behavior when bio is not reckecked) against remaining 
pending exceptions and if another pending exception is found, the bio is 
linked on it again ... and so on until there are no remaining exceptions, 
at this point the bio is dispatched.

I have made a testcase for this bug:
It used to corrupt the data on some older kernel but it doesn't now (but 
the bug is still present, just some timining have changed or it's because 
I use different computer) --- you can examine it and tune it to reproduce 
the bug again.

Once you get through this patch you can start with the merging patches.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]