summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorPhilipp Reisner <philipp.reisner@linbit.com>2010-06-10 16:46:54 +0200
committerPhilipp Reisner <philipp.reisner@linbit.com>2010-10-14 14:56:50 +0200
commit999122bc188a4d0a4847bdf1915d357bd6ab53dc (patch)
tree0f9362cc0b5c58f48b9836bf40ee28e095d7dd5a /drivers
parentdrbd: Now we need to handle the ed_uuid of an diskless, unconnected primary c... (diff)
downloadlinux-999122bc188a4d0a4847bdf1915d357bd6ab53dc.tar.xz
linux-999122bc188a4d0a4847bdf1915d357bd6ab53dc.zip
drbd: Removing a by now obsolete clause in the state sanitizing
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/block/drbd/drbd_main.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/block/drbd/drbd_main.c b/drivers/block/drbd/drbd_main.c
index c701805ed4b9..c502648b7b40 100644
--- a/drivers/block/drbd/drbd_main.c
+++ b/drivers/block/drbd/drbd_main.c
@@ -847,9 +847,6 @@ static union drbd_state sanitize_state(struct drbd_conf *mdev, union drbd_state
if (ns.conn == C_STANDALONE && ns.disk == D_DISKLESS && ns.role == R_SECONDARY)
ns.aftr_isp = 0;
- if (ns.conn <= C_DISCONNECTING && ns.disk == D_DISKLESS)
- ns.pdsk = D_UNKNOWN;
-
/* Abort resync if a disk fails/detaches */
if (os.conn > C_CONNECTED && ns.conn > C_CONNECTED &&
(ns.disk <= D_FAILED || ns.pdsk <= D_FAILED)) {