drbd: drbd_al_being_io: short circuit to reduce latency
authorLars Ellenberg <lars.ellenberg@linbit.com>
Tue, 19 Mar 2013 17:16:49 +0000 (18:16 +0100)
committerJens Axboe <axboe@kernel.dk>
Sat, 23 Mar 2013 00:14:00 +0000 (18:14 -0600)
commitebfd5d8f715167b886c9401e6b123847187f137b
tree33da96fa4f1949af33492299930491f2ee797c9a
parent56392d2f40aac4b520fc50bc356f40e07f7e1c7d
drbd: drbd_al_being_io: short circuit to reduce latency

A request hitting an already "hot" extent should proceed right away,
even if some other requests need to wait for pending transactions.

Without that short-circuit, several simultaneous make_request contexts
race for committing the transaction, possibly penalizing the innocent.

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_actlog.c