diff options
Diffstat (limited to 'fs/ocfs2')
-rw-r--r-- | fs/ocfs2/dlm/dlmrecovery.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/fs/ocfs2/dlm/dlmrecovery.c b/fs/ocfs2/dlm/dlmrecovery.c index f93315c98871..2e32fe65c6c2 100644 --- a/fs/ocfs2/dlm/dlmrecovery.c +++ b/fs/ocfs2/dlm/dlmrecovery.c | |||
@@ -1908,11 +1908,9 @@ skip_lvb: | |||
1908 | 1908 | ||
1909 | leave: | 1909 | leave: |
1910 | /* balance the ref taken when the work was queued */ | 1910 | /* balance the ref taken when the work was queued */ |
1911 | if (added > 0) { | 1911 | spin_lock(&res->spinlock); |
1912 | spin_lock(&res->spinlock); | 1912 | dlm_lockres_drop_inflight_ref(dlm, res); |
1913 | dlm_lockres_drop_inflight_ref(dlm, res); | 1913 | spin_unlock(&res->spinlock); |
1914 | spin_unlock(&res->spinlock); | ||
1915 | } | ||
1916 | 1914 | ||
1917 | if (ret < 0) { | 1915 | if (ret < 0) { |
1918 | mlog_errno(ret); | 1916 | mlog_errno(ret); |