History

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.

Chuck Lever committed 9 years ago

Commit 8dcbec61 parent 1f541893 files · +18 −5Browse files

Showing the changes to include/linux (1 of 3 files). Show all

Unified · Split

include/linux/nfs_fs_sb.h+2−0
@@ -42,6 +42,7 @@ struct nfs_client { · 41 unmodified lines
4242 #define NFS_CS_MIGRATION 2 /* - transparent state migr */
4343 #define NFS_CS_INFINITE_SLOTS 3 /* - don't limit TCP slots */
4444 #define NFS_CS_NO_RETRANS_TIMEOUT 4 /* - Disable retransmit timeouts */
45+#define NFS_CS_TSM_POSSIBLE 5 /* - Maybe state migration */
4546 struct sockaddr_storage cl_addr; /* server identifier */
4647 size_t cl_addrlen;
4748 char * cl_hostname; /* hostname of server */
@@ -210,6 +211,7 @@ struct nfs_server { · 162 unmodified lines
210211 unsigned long mig_status;
211212 #define NFS_MIG_IN_TRANSITION (1)
212213 #define NFS_MIG_FAILED (2)
214+#define NFS_MIG_TSM_POSSIBLE (3)
213215
214216 void (*destroy)(struct nfs_server *);
215217

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t