Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d2e17807 authored by Philipp Reisner's avatar Philipp Reisner
Browse files

drbd: Only downgrade the disk state in case of disk failures

parent f36af18c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1827,6 +1827,7 @@ static inline void __drbd_chk_io_error_(struct drbd_conf *mdev, int forcedetach,
		if (!forcedetach) {
			if (__ratelimit(&drbd_ratelimit_state))
				dev_err(DEV, "Local IO failed in %s.\n", where);
			if (mdev->state.disk > D_INCONSISTENT)
				_drbd_set_state(_NS(mdev, disk, D_INCONSISTENT), CS_HARD, NULL);
			break;
		}