drbd: better separate WRITE and READ code paths in drbd_make_request
authorLars Ellenberg <lars.ellenberg@linbit.com>
Thu, 29 Mar 2012 15:04:14 +0000 (17:04 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 8 Nov 2012 15:58:35 +0000 (16:58 +0100)
commit5da9c8364443797ece9393670fb7ab69cff055ed
tree90a7206ac7e446c46863ad6caefbd014c94ec1d8
parentb6dd1a89767bc33e9c98b3195f8925b46c5c95f3
drbd: better separate WRITE and READ code paths in drbd_make_request

cherry-picked and adapted from drbd 9 devel branch

READs will be interesting to at most one connection,
WRITEs should be interesting for all established connections.

Introduce some helper functions to hopefully make this easier to follow.

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