drbd: only start a new epoch, if the current epoch contains writes
authorLars Ellenberg <lars.ellenberg@linbit.com>
Tue, 7 Aug 2012 04:42:09 +0000 (06:42 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Fri, 9 Nov 2012 13:05:47 +0000 (14:05 +0100)
commit99b4d8fe6d12dcb49126df7153961fbc4de05f2a
tree6e9f8f96b8264f7d1ce801d32526ec47b99de051
parent8a0bab2a6dd05ee35777370be892daba01750712
drbd: only start a new epoch, if the current epoch contains writes

Almost all code paths calling start_new_tl_epoch() guarded it with
if (... current_tle_writes > 0 ... ).
Just move that inside start_new_tl_epoch().

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