drbd: Eliminated the "notified peer" messages
authorPhilipp Reisner <philipp.reisner@linbit.com>
Fri, 8 Jul 2011 12:47:45 +0000 (14:47 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 8 Nov 2012 15:57:52 +0000 (16:57 +0100)
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
drivers/block/drbd/drbd_state.c

index 633b52c724448d58ae2124c0e6f1f5632ab8e44e..c4dd667b20e42f273c0890421a8852c01b60af7c 100644 (file)
@@ -1333,9 +1333,7 @@ static void after_state_ch(struct drbd_conf *mdev, union drbd_state os,
                                "ASSERT FAILED: disk is %s during detach\n",
                                drbd_disk_str(mdev->state.disk));
 
-               if (!drbd_send_state(mdev))
-                       dev_info(DEV, "Notified peer that I am detaching my disk\n");
-
+               drbd_send_state(mdev);
                drbd_rs_cancel_all(mdev);
 
                /* In case we want to get something to stable storage still,
@@ -1363,8 +1361,7 @@ static void after_state_ch(struct drbd_conf *mdev, union drbd_state os,
                 mdev->rs_failed = 0;
                 atomic_set(&mdev->rs_pending_cnt, 0);
 
-               if (!drbd_send_state(mdev))
-                       dev_info(DEV, "Notified peer that I'm now diskless.\n");
+               drbd_send_state(mdev);
                /* corresponding get_ldev in __drbd_set_state
                 * this may finally trigger drbd_ldev_destroy. */
                put_ldev(mdev);