]> www.infradead.org Git - users/jedix/linux-maple.git/commit
NFSv4.1: Handle EXCHGID4_FLAG_CONFIRMED_R during NFSv4.1 migration
authorChuck Lever <chuck.lever@oracle.com>
Thu, 8 Jun 2017 15:52:44 +0000 (11:52 -0400)
committerChuck Anderson <chuck.anderson@oracle.com>
Wed, 2 Aug 2017 03:32:24 +0000 (20:32 -0700)
commitb5f578e4dea74970bbacc34e157d85ec21ba640f
tree78bb6d46366e23c6b685ea5d0155d8cda6268fa7
parent3782e96dd9cfa41259c87c9163e1155c3f9a1c90
NFSv4.1: Handle EXCHGID4_FLAG_CONFIRMED_R during NFSv4.1 migration

Transparent State Migration copies a client's lease state from the
server where a filesystem used to reside to the server where it now
resides. When an NFSv4.1 client first contacts that destination
server, it uses EXCHANGE_ID to detect trunking relationships.

The lease that was copied there is returned to that client, but the
destination server sets EXCHGID4_FLAG_CONFIRMED_R when replying to
the client. This is because the lease was confirmed on the source
server (before it was copied).

Normally, when CONFIRMED_R is set, a client purges the lease and
creates a new one. However, that throws away the entire benefit of
Transparent State Migration.

Therefore, the client must not purge that lease when it is possible
that Transparent State Migration has occurred.

Reported-by: Xuan Qi <xuan.qi@oracle.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Tested-by: Xuan Qi <xuan.qi@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
(cherry picked from commit 8dcbec6d20eb881ba368d0aebc3a8a678aebb1da)

Orabug: 25727872
Signed-off-by: Manjunath Patil <manjunath.b.patil@oracle.com>
fs/nfs/nfs4client.c
fs/nfs/nfs4state.c
include/linux/nfs_fs_sb.h