[PATCH 2/3] SQUASHME: pnfsd: always set both MDS and DS exchangeid capability flags

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We always support both modes when CONFIG_PNFSD is enabled.
The client needs to remember what the session is used for
if it cares to distiguish between DSs and MDSs.

Signed-off-by: Benny Halevy <bhalevy@xxxxxxxxxxx>
---
 fs/nfsd/nfs4state.c |   15 ++-------------
 1 files changed, 2 insertions(+), 13 deletions(-)

diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index 108cb3e..aa2e9c2 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -1103,20 +1103,9 @@ static void
 nfsd4_set_ex_flags(struct nfs4_client *new, struct nfsd4_exchange_id *clid)
 {
 #if defined(CONFIG_PNFSD)
-	int mds_and_ds = EXCHGID4_FLAG_USE_PNFS_MDS | EXCHGID4_FLAG_USE_PNFS_DS;
-	int mds_or_ds = 0;
-
-	/* Save the client's MDS or DS flags, or set them both.
-	 * XXX We currently do not have a method of determining
-	 * what a server supports prior to receiving a filehandle
-	 * e.g. at exchange id time. */
-	mds_or_ds = clid->flags & mds_and_ds;
-	if (mds_or_ds)
-		new->cl_exchange_flags |= mds_or_ds;
-	else
-		new->cl_exchange_flags |= mds_and_ds;
+	new->cl_exchange_flags |= EXCHGID4_FLAG_USE_PNFS_MDS |
+				  EXCHGID4_FLAG_USE_PNFS_DS;
 #else  /* CONFIG_PNFSD */
-	/* pNFS is not supported */
 	new->cl_exchange_flags |= EXCHGID4_FLAG_USE_NON_PNFS;
 #endif /* CONFIG_PNFSD */
 
-- 
1.6.5.1

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux