android_kernel_xiaomi_sm8350/fs/ocfs2/dlm
Joel Becker d24fbcda0c ocfs2: Negotiate locking protocol versions.
Currently, when ocfs2 nodes connect via TCP, they advertise their
compatibility level.  If the versions do not match, two nodes cannot speak
to each other and they disconnect. As a result, this provides no forward or
backwards compatibility.

This patch implements a simple protocol negotiation at the dlm level by
introducing a major/minor version number scheme for entities that
communicate.  Specifically, o2dlm has a major/minor version for interaction
with o2dlm on other nodes, and ocfs2 itself has a major/minor version for
interacting with the filesystem on other nodes.

This will allow rolling upgrades of ocfs2 clusters when changes to the
locking or network protocols can be done in a backwards compatible manner.
In those cases, only the minor number is changed and the negotatied protocol
minor is returned from dlm join. In the far less likely event that a
required protocol change makes backwards compatibility impossible, we simply
bump the major number.

Signed-off-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
2008-02-06 16:11:29 -08:00
..
dlmapi.h ocfs2: Negotiate locking protocol versions. 2008-02-06 16:11:29 -08:00
dlmast.c
dlmcommon.h ocfs2: Negotiate locking protocol versions. 2008-02-06 16:11:29 -08:00
dlmconvert.c
dlmconvert.h
dlmdebug.c
dlmdomain.c ocfs2: Negotiate locking protocol versions. 2008-02-06 16:11:29 -08:00
dlmdomain.h
dlmfs.c ocfs2: Negotiate locking protocol versions. 2008-02-06 16:11:29 -08:00
dlmfsver.c ocfs2: bump version number 2008-01-25 15:05:46 -08:00
dlmfsver.h
dlmlock.c
dlmmaster.c [PATCH] fs/ocfs2: Add missing "space" 2007-11-27 16:47:01 -08:00
dlmrecovery.c ocfs2/dlm: Clear joining_node on hearbeat node down 2008-01-25 15:05:46 -08:00
dlmthread.c
dlmunlock.c
dlmver.c ocfs2: bump version number 2008-01-25 15:05:46 -08:00
dlmver.h
Makefile
userdlm.c ocfs2: Negotiate locking protocol versions. 2008-02-06 16:11:29 -08:00
userdlm.h ocfs2: Negotiate locking protocol versions. 2008-02-06 16:11:29 -08:00