aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/drbd
diff options
context:
space:
mode:
authorPhilipp Reisner <philipp.reisner@linbit.com>2011-06-28 11:01:19 -0400
committerPhilipp Reisner <philipp.reisner@linbit.com>2012-05-09 09:10:34 -0400
commit5ca1de0384dafe843de10fed843de26de740bca1 (patch)
tree64998e65c2f3c051c7c64907d718c4eb791eeddb /drivers/block/drbd
parent9e58c4dad70bfba86f016bcc98fa19f468d0b777 (diff)
drbd: Allow new IOs while the local disk in in FAILED state
The last bunch of commits prepared the 'detach from tar pit' feature. With that we can be for long time in disk state FAILED. We need to accept new IO requests during that time. Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers/block/drbd')
-rw-r--r--drivers/block/drbd/drbd_int.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/drbd/drbd_int.h b/drivers/block/drbd/drbd_int.h
index 10ea9e388246..c7976a77dfba 100644
--- a/drivers/block/drbd/drbd_int.h
+++ b/drivers/block/drbd/drbd_int.h
@@ -2310,12 +2310,12 @@ static inline int drbd_state_is_stable(struct drbd_conf *mdev)
2310 case D_OUTDATED: 2310 case D_OUTDATED:
2311 case D_CONSISTENT: 2311 case D_CONSISTENT:
2312 case D_UP_TO_DATE: 2312 case D_UP_TO_DATE:
2313 case D_FAILED:
2313 /* disk state is stable as well. */ 2314 /* disk state is stable as well. */
2314 break; 2315 break;
2315 2316
2316 /* no new io accepted during tansitional states */ 2317 /* no new io accepted during tansitional states */
2317 case D_ATTACHING: 2318 case D_ATTACHING:
2318 case D_FAILED:
2319 case D_NEGOTIATING: 2319 case D_NEGOTIATING:
2320 case D_UNKNOWN: 2320 case D_UNKNOWN:
2321 case D_MASK: 2321 case D_MASK: