diff options
author | Alexander Aring <aahringo@redhat.com> | 2023-08-01 14:09:47 -0400 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2023-08-10 10:33:03 -0500 |
commit | b9d2f6ada0083bad46f37a1238fea718b575e0fa (patch) | |
tree | bff188ab700f8291dcb412cb2e645551f52a2b58 /fs/dlm/lock.h | |
parent | 561c67d8a10142250baa2a2a4e8b5d95e9c97df9 (diff) | |
download | linux-stable-b9d2f6ada0083bad46f37a1238fea718b575e0fa.tar.gz linux-stable-b9d2f6ada0083bad46f37a1238fea718b575e0fa.tar.bz2 linux-stable-b9d2f6ada0083bad46f37a1238fea718b575e0fa.zip |
fs: dlm: drop rxbuf manipulation in dlm_recover_master_copy
Currently dlm_recover_master_copy() manipulates the receive buffer of an
rcom lock message and modifies it on the fly so a later memcpy() to a
new rcom message with the same message has those new values. This patch
avoids manipulating the received rcom message by store the values for
the new rcom message in paremter assigned with call by reference. Later
when dlm_send_rcom_lock() constructs a new message and memcpy() the
receive buffer those values will be set on the new constructed message.
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/lock.h')
-rw-r--r-- | fs/dlm/lock.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/dlm/lock.h b/fs/dlm/lock.h index 222e682523b9..cd67ccfbbf9b 100644 --- a/fs/dlm/lock.h +++ b/fs/dlm/lock.h @@ -36,7 +36,8 @@ void dlm_purge_mstcpy_locks(struct dlm_rsb *r); void dlm_recover_grant(struct dlm_ls *ls); int dlm_recover_waiters_post(struct dlm_ls *ls); void dlm_recover_waiters_pre(struct dlm_ls *ls); -int dlm_recover_master_copy(struct dlm_ls *ls, struct dlm_rcom *rc); +int dlm_recover_master_copy(struct dlm_ls *ls, struct dlm_rcom *rc, + __le32 *rl_remid, __le32 *rl_result); int dlm_recover_process_copy(struct dlm_ls *ls, struct dlm_rcom *rc, uint64_t seq); |