aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Reisner <philipp.reisner@linbit.com>2011-07-08 14:47:45 +0200
committerPhilipp Reisner <philipp.reisner@linbit.com>2012-11-08 16:57:52 +0100
commita67e1d9e8cca5e05f03a6f45c3220c6fe3adfa95 (patch)
tree71d54bd2301bd3664ffa91a0d0f28c5ca03b4372
parent369bea63711ae0595f6ef8c3c02bbf8a17ec608a (diff)
downloadvexpress-lsk-a67e1d9e8cca5e05f03a6f45c3220c6fe3adfa95.tar.gz
drbd: Eliminated the "notified peer" messages
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
-rw-r--r--drivers/block/drbd/drbd_state.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/block/drbd/drbd_state.c b/drivers/block/drbd/drbd_state.c
index 633b52c7244..c4dd667b20e 100644
--- a/drivers/block/drbd/drbd_state.c
+++ b/drivers/block/drbd/drbd_state.c
@@ -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);