[Bugs] [Bug 1331720] implement meta-lock/unlock for lock migration
bugzilla at redhat.com
bugzilla at redhat.com
Fri Jun 3 10:06:37 UTC 2016
https://bugzilla.redhat.com/show_bug.cgi?id=1331720
--- Comment #10 from Vijay Bellur <vbellur at redhat.com> ---
COMMIT: http://review.gluster.org/14251 committed in master by Raghavendra G
(rgowdapp at redhat.com)
------
commit 19b8c09709c7aeecb84eafb02de797a49a004638
Author: Susant Palai <spalai at redhat.com>
Date: Fri Apr 22 15:20:39 2016 +0530
posix/lock: implement meta-lock/unlock functionality
problem : The lock state needs to be protected when rebalance is reading
the
lock state on the source. Otherwise there will be locks left unmigrated.
Hence, to synchronize incoming lock requests with lock-migration, meta lock
is needed. Any new lock request will be queued if there is an active
meta-lock
and with sucessful lock migration, will be unwound with EREMOTE, so that
dht module can wind the request to the correct destination.
On a successful lock migration, "pl_inode->migrated" flag is enabled.
Hence,
any further request would be unwound with EREMOTE and will be redirected to
new destination.
More details can be found here:
https://github.com/gluster/glusterfs-specs/blob/master/accepted/Lock-Migration.md
design discussion:
https://www.gluster.org/pipermail/gluster-devel/2016-January/048088.html
Change-Id: Ief033d5652b5ca4ba6f499110a521cae283d6aba
BUG: 1331720
Signed-off-by: Susant Palai <spalai at redhat.com>
Reviewed-on: http://review.gluster.org/14251
Tested-by: Prasanna Kumar Kalever <pkalever at redhat.com>
Smoke: Gluster Build System <jenkins at build.gluster.com>
NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
CentOS-regression: Gluster Build System <jenkins at build.gluster.com>
Reviewed-by: Raghavendra G <rgowdapp at redhat.com>
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=CRzBZz5b5I&a=cc_unsubscribe
More information about the Bugs
mailing list