]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[DLM] fix userland unlock
authorPatrick Caulfield <pcaulfie@redhat.com>
Tue, 8 Aug 2006 14:34:40 +0000 (10:34 -0400)
committerSteven Whitehouse <swhiteho@redhat.com>
Tue, 8 Aug 2006 14:34:40 +0000 (10:34 -0400)
This patch fixes the userland DLM unlock code so that it correctly returns the
address of the userland lock status block in its completion AST.

It fixes bug #201348

Patrick

Signed-Off-By: Patrick Caulfield <pcaulfie@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/dlm/lock.c

index 7d38f914c5b97e4aad0b5c7b5d44a01b048b9140..bb2e3515121077698634e791c5b07868150c884c 100644 (file)
@@ -3699,6 +3699,7 @@ int dlm_user_unlock(struct dlm_ls *ls, struct dlm_user_args *ua_tmp,
        if (lvb_in && ua->lksb.sb_lvbptr)
                memcpy(ua->lksb.sb_lvbptr, lvb_in, DLM_USER_LVB_LEN);
        ua->castparam = ua_tmp->castparam;
+       ua->user_lksb = ua_tmp->user_lksb;
 
        error = set_unlock_args(flags, ua, &args);
        if (error)