ocfs2: fix wake_up in unlock_ast

In ocfs2_unlock_ast(), call wake_up() on lockres before releasing
the spin lock on it. As soon as the spin lock is released, the
lockres can be freed.

Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>

authored by David Teigland and committed by Mark Fasheh 07f9eebc 66f502a4

+1 -2
+1 -2
fs/ocfs2/dlmglue.c
··· 2841 2842 lockres_clear_flags(lockres, OCFS2_LOCK_BUSY); 2843 lockres->l_unlock_action = OCFS2_UNLOCK_INVALID; 2844 - spin_unlock_irqrestore(&lockres->l_lock, flags); 2845 - 2846 wake_up(&lockres->l_event); 2847 2848 mlog_exit_void(); 2849 }
··· 2841 2842 lockres_clear_flags(lockres, OCFS2_LOCK_BUSY); 2843 lockres->l_unlock_action = OCFS2_UNLOCK_INVALID; 2844 wake_up(&lockres->l_event); 2845 + spin_unlock_irqrestore(&lockres->l_lock, flags); 2846 2847 mlog_exit_void(); 2848 }