summaryrefslogtreecommitdiffstats
path: root/drivers/block/drbd/drbd_interval.h
Commit message (Collapse)AuthorAgeFilesLines
* drbd: application writes may set-in-sync in protocol != CLars Ellenberg2014-07-101-1/+3
| | | | | | | | | | | If "dirty" blocks are written to during resync, that brings them in-sync. By explicitly requesting write-acks during resync even in protocol != C, we now can actually respect this. Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
* drbd: Iterate over all overlapping intervals in a treeAndreas Gruenbacher2011-10-141-4/+12
| | | | | | | Add a macro and helper function for doing that. Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
* drbd: _req_conflicts(): Get rid of the epoch_entries treeAndreas Gruenbacher2011-09-281-0/+1
| | | | | | | | | | Instead of keeping a separate tree for local and remote write requests for finding requests and for conflict detection, use the same tree for both purposes. Introduce a flag to allow distinguishing the two possible types of entries in this tree. Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
* drbd: Allow to wait for the completion of an epoch entry as wellAndreas Gruenbacher2011-09-281-0/+1
| | | | | Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
* drbd: Use the read and write request trees for request lookupsAndreas Gruenbacher2011-08-291-2/+1
| | | | | Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
* drbd: Add interval tree data structureAndreas Gruenbacher2011-08-251-0/+31
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>