提交 8ea62f54 编写于 作者: P Philipp Reisner

drbd: Revert "Make sure we dont send state if a cluster wide state change is in progress"

This reverts commit 6e9fdc92b77915d5c7ab8fea751f48378f8b0080.

1) This did not fixed the issue
2) Long sleeping work items can cause IO requests to take as long as
   the longest work item
Signed-off-by: NPhilipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: NLars Ellenberg <lars.ellenberg@linbit.com>
上级 e64a3294
......@@ -951,10 +951,6 @@ int drbd_send_state(struct drbd_conf *mdev)
struct p_state p;
int ok = 0;
/* Grab state lock so we wont send state if we're in the middle
* of a cluster wide state change on another thread */
drbd_state_lock(mdev);
mutex_lock(&mdev->tconn->data.mutex);
p.state = cpu_to_be32(mdev->state.i); /* Within the send mutex */
......@@ -966,7 +962,6 @@ int drbd_send_state(struct drbd_conf *mdev)
mutex_unlock(&mdev->tconn->data.mutex);
drbd_state_unlock(mdev);
return ok;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册