From 8a00ad080cbea0d01470c5f724d7d8ff54b0e254 Mon Sep 17 00:00:00 2001 From: Vikas Gorur Date: Wed, 15 Apr 2009 06:02:22 -0700 Subject: Use original pid when calling the FOP in afr transaction. Save the original pid while locking and restore it after the FOP is done. This ensures posix-locks can release locks (fcntl) properly. Signed-off-by: Anand V. Avati --- xlators/cluster/afr/src/afr.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'xlators/cluster/afr/src/afr.h') diff --git a/xlators/cluster/afr/src/afr.h b/xlators/cluster/afr/src/afr.h index 32484fd0a..2871bfc47 100644 --- a/xlators/cluster/afr/src/afr.h +++ b/xlators/cluster/afr/src/afr.h @@ -145,7 +145,9 @@ typedef struct _afr_local { unsigned int govinda_gOvinda; unsigned int read_child_index; - + + pid_t saved_pid; + int32_t op_ret; int32_t op_errno; -- cgit