drbd: simplify retry path of failed READ requests
authorLars Ellenberg <lars.ellenberg@linbit.com>
Mon, 26 Mar 2012 15:29:30 +0000 (17:29 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 8 Nov 2012 15:58:24 +0000 (16:58 +0100)
commit4439c400ab278378a82efb543bb3bb91b184d8db
tree8573efc9416f0a5c22899018aa93ccd064e2f992
parent2415308eb94e7bddf9c9a0f210374600210274d7
drbd: simplify retry path of failed READ requests

If a local or remote READ request fails, just push it back to the retry
workqueue.  It will re-enter __drbd_make_request, and be re-assigned to
a suitable local or remote path, or failed, if we do not have access to
good data anymore.

This obsoletes w_read_retry_remote(),
and eliminates two goto...retry blocks in __req_mod()

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