summaryrefslogtreecommitdiffstats
path: root/tests/basic/fencing/afr-lock-heal-basic.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basic/fencing/afr-lock-heal-basic.c')
-rw-r--r--tests/basic/fencing/afr-lock-heal-basic.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/basic/fencing/afr-lock-heal-basic.c b/tests/basic/fencing/afr-lock-heal-basic.c
index 768c9e5718..a0a55de450 100644
--- a/tests/basic/fencing/afr-lock-heal-basic.c
+++ b/tests/basic/fencing/afr-lock-heal-basic.c
@@ -101,6 +101,13 @@ acquire_mandatory_lock(glfs_t *fs, char *fname)
pause();
+ ret = glfs_fd_set_lkowner(fd, fd, sizeof(fd));
+ if (ret) {
+ LOG_ERR("glfs_fd_set_lkowner", errno);
+ ret = -1;
+ goto out;
+ }
+
/* take a write mandatory lock */
ret = glfs_file_lock(fd, F_SETLKW, &lock, GLFS_LK_MANDATORY);
if (ret) {