drbd: Request lookup code cleanup (2)
authorAndreas Gruenbacher <agruen@linbit.com>
Thu, 20 Jan 2011 16:14:26 +0000 (17:14 +0100)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 25 Aug 2011 12:58:01 +0000 (14:58 +0200)
commit668eebc6a10ba146db6b8257b9938121d1f3a06a
tree1b2f524ffb17c97f8465a34099ce035fab337f10
parent516245856456db591c5336a90584077545e772b1
drbd: Request lookup code cleanup (2)

Unify the ar_id_to_req() and ack_id_to_req() functions: make both fail
if the consistency check fails.  Move the request lookup code now
duplicated in both functions into its own function.

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