diff options
author | Philipp Reisner <philipp.reisner@linbit.com> | 2011-07-08 08:47:45 -0400 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2012-11-08 10:57:52 -0500 |
commit | a67e1d9e8cca5e05f03a6f45c3220c6fe3adfa95 (patch) | |
tree | 71d54bd2301bd3664ffa91a0d0f28c5ca03b4372 /drivers/block/drbd/drbd_state.c | |
parent | 369bea63711ae0595f6ef8c3c02bbf8a17ec608a (diff) |
drbd: Eliminated the "notified peer" messages
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers/block/drbd/drbd_state.c')
-rw-r--r-- | drivers/block/drbd/drbd_state.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/block/drbd/drbd_state.c b/drivers/block/drbd/drbd_state.c index 633b52c72444..c4dd667b20e4 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, | |||
1333 | "ASSERT FAILED: disk is %s during detach\n", | 1333 | "ASSERT FAILED: disk is %s during detach\n", |
1334 | drbd_disk_str(mdev->state.disk)); | 1334 | drbd_disk_str(mdev->state.disk)); |
1335 | 1335 | ||
1336 | if (!drbd_send_state(mdev)) | 1336 | drbd_send_state(mdev); |
1337 | dev_info(DEV, "Notified peer that I am detaching my disk\n"); | ||
1338 | |||
1339 | drbd_rs_cancel_all(mdev); | 1337 | drbd_rs_cancel_all(mdev); |
1340 | 1338 | ||
1341 | /* In case we want to get something to stable storage still, | 1339 | /* 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, | |||
1363 | mdev->rs_failed = 0; | 1361 | mdev->rs_failed = 0; |
1364 | atomic_set(&mdev->rs_pending_cnt, 0); | 1362 | atomic_set(&mdev->rs_pending_cnt, 0); |
1365 | 1363 | ||
1366 | if (!drbd_send_state(mdev)) | 1364 | drbd_send_state(mdev); |
1367 | dev_info(DEV, "Notified peer that I'm now diskless.\n"); | ||
1368 | /* corresponding get_ldev in __drbd_set_state | 1365 | /* corresponding get_ldev in __drbd_set_state |
1369 | * this may finally trigger drbd_ldev_destroy. */ | 1366 | * this may finally trigger drbd_ldev_destroy. */ |
1370 | put_ldev(mdev); | 1367 | put_ldev(mdev); |