drbd: move start io accounting before activity log transaction
authorLars Ellenberg <lars.ellenberg@linbit.com>
Tue, 19 Mar 2013 17:16:57 +0000 (18:16 +0100)
committerJens Axboe <axboe@kernel.dk>
Sat, 23 Mar 2013 04:18:09 +0000 (22:18 -0600)
commit7e8c288f6cde950a6ca001ec06a32c8c2cf4180e
treeb8d6582b3dc188f6a6d49566f912cd59770a2bfa
parent08a1ddab6df7d3c7b6341774cb1cf4b21b96a214
drbd: move start io accounting before activity log transaction

The IO accounting of the drbd "queue depth" was misleading.
We only started IO accounting once we already wrote the activity log.

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