drbd: move put_ldev from __req_mod() to the endio callback
authorLars Ellenberg <lars.ellenberg@linbit.com>
Mon, 16 Jan 2012 14:04:33 +0000 (15:04 +0100)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Wed, 9 May 2012 13:16:51 +0000 (15:16 +0200)
commit46385c84acd6654d3a38c9c7af1921dbded74aa2
tree352c84f1e31a15bd50d3993b71f20d93357372d4
parentd64957c9a9757642f59aa4a63dadf159b2694bab
drbd: move put_ldev from __req_mod() to the endio callback

One invocation in the endio handler is good enough,
we don't need mention it for each of the different ways
it calls __req_mod().

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