diff options
author | Mark Fasheh <mark.fasheh@oracle.com> | 2006-04-28 06:07:45 +0400 |
---|---|---|
committer | Mark Fasheh <mark.fasheh@oracle.com> | 2006-06-27 01:42:55 +0400 |
commit | c0a8520c7333dd62624683772f31864c7f9c46d9 (patch) | |
tree | 104c77f335821202518dcfb22ba76e7736e55187 /fs/ocfs2/dlm/dlmconvert.c | |
parent | aa85235427992b8d3040297d9174d69dd1d8a675 (diff) | |
download | linux-c0a8520c7333dd62624683772f31864c7f9c46d9.tar.xz |
ocfs2: do LVB puts in place
Don't wait until the AST will be fired to do the LVB copy into the lock
resource.
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Diffstat (limited to 'fs/ocfs2/dlm/dlmconvert.c')
-rw-r--r-- | fs/ocfs2/dlm/dlmconvert.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ocfs2/dlm/dlmconvert.c b/fs/ocfs2/dlm/dlmconvert.c index 70888b31e751..90cbaaff33a7 100644 --- a/fs/ocfs2/dlm/dlmconvert.c +++ b/fs/ocfs2/dlm/dlmconvert.c @@ -214,6 +214,9 @@ grant: if (lock->ml.node == dlm->node_num) mlog(0, "doing in-place convert for nonlocal lock\n"); lock->ml.type = type; + if (lock->lksb->flags & DLM_LKSB_PUT_LVB) + memcpy(res->lvb, lock->lksb->lvb, DLM_LVB_LEN); + status = DLM_NORMAL; *call_ast = 1; goto unlock_exit; |