diff options
-rw-r--r-- | fs/ocfs2/dlm/dlmmaster.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/fs/ocfs2/dlm/dlmmaster.c b/fs/ocfs2/dlm/dlmmaster.c index 3689b3592042..a6944b25fd5b 100644 --- a/fs/ocfs2/dlm/dlmmaster.c +++ b/fs/ocfs2/dlm/dlmmaster.c | |||
@@ -695,14 +695,6 @@ void __dlm_lockres_grab_inflight_worker(struct dlm_ctxt *dlm, | |||
695 | res->inflight_assert_workers); | 695 | res->inflight_assert_workers); |
696 | } | 696 | } |
697 | 697 | ||
698 | static void dlm_lockres_grab_inflight_worker(struct dlm_ctxt *dlm, | ||
699 | struct dlm_lock_resource *res) | ||
700 | { | ||
701 | spin_lock(&res->spinlock); | ||
702 | __dlm_lockres_grab_inflight_worker(dlm, res); | ||
703 | spin_unlock(&res->spinlock); | ||
704 | } | ||
705 | |||
706 | static void __dlm_lockres_drop_inflight_worker(struct dlm_ctxt *dlm, | 698 | static void __dlm_lockres_drop_inflight_worker(struct dlm_ctxt *dlm, |
707 | struct dlm_lock_resource *res) | 699 | struct dlm_lock_resource *res) |
708 | { | 700 | { |
@@ -1646,6 +1638,7 @@ send_response: | |||
1646 | } | 1638 | } |
1647 | mlog(0, "%u is the owner of %.*s, cleaning everyone else\n", | 1639 | mlog(0, "%u is the owner of %.*s, cleaning everyone else\n", |
1648 | dlm->node_num, res->lockname.len, res->lockname.name); | 1640 | dlm->node_num, res->lockname.len, res->lockname.name); |
1641 | spin_lock(&res->spinlock); | ||
1649 | ret = dlm_dispatch_assert_master(dlm, res, 0, request->node_idx, | 1642 | ret = dlm_dispatch_assert_master(dlm, res, 0, request->node_idx, |
1650 | DLM_ASSERT_MASTER_MLE_CLEANUP); | 1643 | DLM_ASSERT_MASTER_MLE_CLEANUP); |
1651 | if (ret < 0) { | 1644 | if (ret < 0) { |
@@ -1653,7 +1646,8 @@ send_response: | |||
1653 | response = DLM_MASTER_RESP_ERROR; | 1646 | response = DLM_MASTER_RESP_ERROR; |
1654 | dlm_lockres_put(res); | 1647 | dlm_lockres_put(res); |
1655 | } else | 1648 | } else |
1656 | dlm_lockres_grab_inflight_worker(dlm, res); | 1649 | __dlm_lockres_grab_inflight_worker(dlm, res); |
1650 | spin_unlock(&res->spinlock); | ||
1657 | } else { | 1651 | } else { |
1658 | if (res) | 1652 | if (res) |
1659 | dlm_lockres_put(res); | 1653 | dlm_lockres_put(res); |