Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1420908 > unrolled thread
| Started by | Philipp Reisner <philipp.reisner@linbit.com> |
|---|---|
| First post | 2016-06-13 16:20 +0200 |
| Last post | 2016-06-13 16:20 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 19/30] drbd: only restart frozen disk io when D_UP_TO_DATE Philipp Reisner <philipp.reisner@linbit.com> - 2016-06-13 16:20 +0200
| From | Philipp Reisner <philipp.reisner@linbit.com> |
|---|---|
| Date | 2016-06-13 16:20 +0200 |
| Subject | [PATCH 19/30] drbd: only restart frozen disk io when D_UP_TO_DATE |
| Message-ID | <rJASC-7p1-41@gated-at.bofh.it> |
From: Lars Ellenberg <lars.ellenberg@linbit.com>
When re-attaching the local backend device to a C_STANDALONE D_DISKLESS
R_PRIMARY with OND_SUSPEND_IO, we may only resume IO if we recognize the
backend that is being attached as D_UP_TO_DATE.
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
---
drivers/block/drbd/drbd_state.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/block/drbd/drbd_state.c b/drivers/block/drbd/drbd_state.c
index 59c6467..24422e8 100644
--- a/drivers/block/drbd/drbd_state.c
+++ b/drivers/block/drbd/drbd_state.c
@@ -1675,7 +1675,7 @@ static void after_state_ch(struct drbd_device *device, union drbd_state os,
what = RESEND;
if ((os.disk == D_ATTACHING || os.disk == D_NEGOTIATING) &&
- conn_lowest_disk(connection) > D_NEGOTIATING)
+ conn_lowest_disk(connection) == D_UP_TO_DATE)
what = RESTART_FROZEN_DISK_IO;
if (resource->susp_nod && what != NOTHING) {
--
2.7.4
Back to top | Article view | linux.kernel
csiph-web