drbd: improvements to activate/deactivate multiple activity log extents
authorLars Ellenberg <lars.ellenberg@linbit.com>
Fri, 1 Apr 2011 08:38:30 +0000 (10:38 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 8 Nov 2012 15:45:02 +0000 (16:45 +0100)
commite15766e9c94f7fa3396eff4ffbbf30dea8c0e22a
treed6724bc1deb052604879a0678d118ce11b378978
parent23361cf32b58efdf09945a64e1d8d41fa6117157
drbd: improvements to activate/deactivate multiple activity log extents

Recent commit drbd: get rid of bio_split, allow bios of "arbitrary" size
had a reference count leak: it only deactivated the first of several
activity log extents for intervals crossing extent boundaries.

This commit generalizes on bios spanning multiple activity log extents
in drbd_al_begin_io, and adds the necessary loop around lc_put in
drbd_al_complete_io as well.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
drivers/block/drbd/drbd_actlog.c