diff options
author | Pavan Sondur <pavan@gluster.com> | 2009-12-06 13:29:08 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-12-06 11:33:03 -0800 |
commit | 9e38b5066d42d47f1011e1d1bc32ed9c41df57ec (patch) | |
tree | e37976b8068ddd3135ba3c085ff754fc6302d7a4 /xlators/features/locks/src/locks.h | |
parent | fe37a56dd42294e26158a29c15a35aeb8cb38be2 (diff) |
features/locks: Implement release xlator callback.
This patch solves the lock bailout problem seen recently when autoconf tools were run. This is a workaround,
where 'flock' locks are removed in pl_release, if an explicit UNLCK call does not come. The complete fix would
be to allow 'fcntl' and 'flock' locks to operate in different domains.
Signed-off-by: Pavan Vilas Sondur <pavan@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 449 (Handle flock calls in a different domain from fcntl calls)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=449
Diffstat (limited to 'xlators/features/locks/src/locks.h')
-rw-r--r-- | xlators/features/locks/src/locks.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/features/locks/src/locks.h b/xlators/features/locks/src/locks.h index 7dc8e2d4f93..e89092811a6 100644 --- a/xlators/features/locks/src/locks.h +++ b/xlators/features/locks/src/locks.h @@ -42,7 +42,7 @@ struct __posix_lock { short blocked; /* waiting to acquire */ struct flock user_flock; /* the flock supplied by the user */ xlator_t *this; /* required for blocked locks */ - fd_t *fd; + unsigned long fd_num; call_frame_t *frame; |