Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d88101d4 authored by David Teigland's avatar David Teigland Committed by Steven Whitehouse
Browse files

[GFS2] set plock owner in GETLK info



Set the owner field in the plock info sent to userspace for GETLK.
Without this, gfs_controld won't correctly see when the GETLK from a
process matches one of the process's existing locks.

Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
parent 037bcbb7
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -242,7 +242,7 @@ int gdlm_plock_get(void *lockspace, struct lm_lockname *name,
	op->info.number		= name->ln_number;
	op->info.number		= name->ln_number;
	op->info.start		= fl->fl_start;
	op->info.start		= fl->fl_start;
	op->info.end		= fl->fl_end;
	op->info.end		= fl->fl_end;

	op->info.owner		= (__u64)(long) fl->fl_owner;


	send_op(op);
	send_op(op);
	wait_event(recv_wq, (op->done != 0));
	wait_event(recv_wq, (op->done != 0));