mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 16:54:20 +08:00
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>
This commit is contained in:
parent
9e58c4dad7
commit
5ca1de0384
@ -2310,12 +2310,12 @@ static inline int drbd_state_is_stable(struct drbd_conf *mdev)
|
||||
case D_OUTDATED:
|
||||
case D_CONSISTENT:
|
||||
case D_UP_TO_DATE:
|
||||
case D_FAILED:
|
||||
/* disk state is stable as well. */
|
||||
break;
|
||||
|
||||
/* no new io accepted during tansitional states */
|
||||
case D_ATTACHING:
|
||||
case D_FAILED:
|
||||
case D_NEGOTIATING:
|
||||
case D_UNKNOWN:
|
||||
case D_MASK:
|
||||
|
Loading…
Reference in New Issue
Block a user