mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 22:51:35 +00:00
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>
This commit is contained in:
parent
66f502a416
commit
07f9eebcdf
@ -2841,9 +2841,8 @@ static void ocfs2_unlock_ast(void *opaque, int error)
|
||||
|
||||
lockres_clear_flags(lockres, OCFS2_LOCK_BUSY);
|
||||
lockres->l_unlock_action = OCFS2_UNLOCK_INVALID;
|
||||
spin_unlock_irqrestore(&lockres->l_lock, flags);
|
||||
|
||||
wake_up(&lockres->l_event);
|
||||
spin_unlock_irqrestore(&lockres->l_lock, flags);
|
||||
|
||||
mlog_exit_void();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user