drbd: If we detect late that IO got frozen, retry after we thawed.
authorPhilipp Reisner <philipp.reisner@linbit.com>
Mon, 10 May 2010 14:42:23 +0000 (16:42 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Tue, 18 May 2010 00:03:32 +0000 (02:03 +0200)
commit9a25a04c8079725c1b1ab756694a8e0757844b40
treeed8fbbbbd7cb4db7d77531bcd2c046f5bd0170c1
parenta1c88d0d7aa2ef427f78834c9a3b0a673a19dca6
drbd: If we detect late that IO got frozen, retry after we thawed.

If we detect late (= after grabing mdev->req_lock) that IO got frozen, we
return 1 to generic_make_request(), which simply will retry to make a
request for that bio.

In the subsequent call of generic_make_request() into drbd_make_request_26()
we sleep in inc_ap_bio().

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