]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/ocfs2/dlm/dlmrecovery.c
ocfs2/dlm: unlock lockres spinlock before dlm_lockres_put
[karo-tx-linux.git] / fs / ocfs2 / dlm / dlmrecovery.c
index 3d90ad7ff91fe4748386218807f7131bd61d7d69..58eaa5c0d387051301a089f0d234d4b69bf18d51 100644 (file)
@@ -1723,8 +1723,8 @@ int dlm_master_requery_handler(struct o2net_msg *msg, u32 len, void *data,
                        } else {
                                dispatched = 1;
                                __dlm_lockres_grab_inflight_worker(dlm, res);
+                               spin_unlock(&res->spinlock);
                        }
-                       spin_unlock(&res->spinlock);
                } else {
                        /* put.. incase we are not the master */
                        spin_unlock(&res->spinlock);