drbd: fix regression, we need to close drbd epochs during normal operation
authorLars Ellenberg <lars.ellenberg@linbit.com>
Sun, 5 Dec 2010 13:11:14 +0000 (14:11 +0100)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 10 Mar 2011 10:35:20 +0000 (11:35 +0100)
commit8a3c104438be4986a77f332009b695fcac48f620
tree5f659c3125cb4dd901bfb15532c3ac051f94c8cc
parent09b9e7979378fe070784de20e50bb1d42aa643ab
drbd: fix regression, we need to close drbd epochs during normal operation

commit e2041475e6ddb081734d161f6421977323f5a9b9
drbd: Starting with protocol 96 we can allow app-IO while receiving the bitmap

Contained a bad chunk that tried to optimize away drbd barriers during
bitmap exchange, but accidentally dropped them for normal mode as well.

Impact: depending on activity log size and access pattern, activity log
extents may not be recycled in time, causeing IO to block indefinetely.

Fix: skip drbd barriers only if there is no connection to send them on,
or the request being completed has not been on the network at all.

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