Skip to content

nfsd41-for-2.6.30 patches

Benny Halevy linux-nfs 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest35 patches 0 repliesNew
  2. v247 patches 84 repliesApplied
  3. v147 patches 23 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/35nfsd: don't use the deferral service, return NFS4ERR_DELAYfs/nfsd/nfs4proc.c include/linux/sunrpc/svc.h net/sunrpc/svc.c +1 more+12 -10 replies
2/35nfs41: common protocol definitionsinclude/linux/nfs4.h+127 -10 replies
3/35nfsd41: define nfs41 error codesinclude/linux/nfs.h include/linux/nfsd/nfsd.h+42 -20 replies
4/35nfsd41: sessions basic data typesfs/nfsd/nfs4state.c include/linux/nfsd/state.h+51 -00 replies
5/35nfsd41: introduce nfs4_client cl_sessions listfs/nfsd/nfs4state.c include/linux/nfsd/state.h+4 -00 replies
6/35nfsd41: release_session when client is expiredfs/nfsd/nfs4state.c+6 -00 replies
7/35nfsd41: sessionid hashingfs/nfsd/nfs4state.c include/linux/nfsd/state.h+61 -10 replies
8/35nfsd41: xdr infrastructurefs/nfsd/nfs4xdr.c include/linux/nfsd/xdr4.h+170 -00 replies
9/35nfsd41: proc stubsfs/nfsd/nfs4proc.c fs/nfsd/nfs4state.c include/linux/nfsd/xdr4.h+66 -00 replies
10/35nfsd41: exchange_id operationfs/nfsd/nfs4state.c fs/nfsd/nfs4xdr.c include/linux/nfsd/state.h +1 more+292 -60 replies
11/35nfsd41: match clientid establishment methodfs/nfsd/nfs4recover.c fs/nfsd/nfs4state.c include/linux/nfsd/state.h+34 -130 replies
12/35nfsd41: sequence operationfs/nfsd/nfs4state.c fs/nfsd/nfs4xdr.c include/linux/nfsd/xdr4.h+113 -60 replies
13/35nfsd41: enforce NFS4ERR_SEQUENCE_POS operation order rules for minorversion != 0 only.fs/nfsd/nfs4proc.c fs/nfsd/nfs4state.c+36 -80 replies
14/35nfsd41: DRC save, restore, and clear functionsfs/nfsd/nfs4state.c fs/nfsd/nfssvc.c include/linux/nfsd/cache.h +2 more+164 -00 replies
15/35nfsd41: hard page limit for DRCfs/nfsd/nfssvc.c include/linux/nfsd/nfsd.h include/linux/sunrpc/svc.h+28 -00 replies
16/35nfsd41: nfsd DRC logicfs/nfsd/nfs4proc.c fs/nfsd/nfs4state.c fs/nfsd/nfs4xdr.c +1 more+25 -00 replies
17/35nfsd41: clear DRC cache on free_sessionfs/nfsd/nfs4state.c+7 -00 replies
18/35nfsd41: create_session operationfs/nfsd/nfs4state.c fs/nfsd/nfs4xdr.c include/linux/nfsd/state.h +1 more+358 -60 replies
19/35nfsd41: Add a create session replay cachefs/nfsd/nfs4state.c include/linux/nfsd/state.h+28 -130 replies
20/35nfsd41: non-page DRC for solo sequence responsesfs/nfsd/nfs4proc.c fs/nfsd/nfs4state.c fs/nfsd/nfs4xdr.c +2 more+91 -110 replies
21/35nfsd41: destroy_session operationfs/nfsd/nfs4state.c fs/nfsd/nfs4xdr.c include/linux/nfsd/xdr4.h+34 -40 replies
22/35nfsd: pass nfsd4_compound_state* to nfs4_preprocess_{state,seq}id_opfs/nfsd/nfs4proc.c fs/nfsd/nfs4state.c include/linux/nfsd/state.h+21 -150 replies
23/35nfsd41: stateid handlingfs/nfsd/nfs4proc.c fs/nfsd/nfs4state.c fs/nfsd/nfs4xdr.c +2 more+52 -110 replies
24/35nfsd41: check encode size for sessions maxresponse cachedfs/nfsd/nfs4xdr.c+51 -00 replies
25/35nfsd41: clientid handlingfs/nfsd/nfs4proc.c fs/nfsd/nfs4state.c fs/nfsd/nfs4xdr.c+29 -60 replies
26/35nfsd41: access_validfs/nfsd/nfs4proc.c fs/nfsd/nfs4state.c include/linux/nfsd/xdr4.h+17 -50 replies
27/35nfsd41: add OPEN4_SHARE_ACCESS_WANT nfs4_stateid bmapfs/nfsd/nfs4state.c+2 -10 replies
28/35nfsd41: control nfsv4.1 svc via /proc/fs/nfsd/versionsfs/nfsd/nfs4proc.c fs/nfsd/nfsctl.c fs/nfsd/nfssvc.c +1 more+50 -40 replies
29/35nfsd41: provide support for minor version 1 at rpc levelinclude/linux/nfsd/nfsd.h+1 -10 replies
30/35nfsd41: pass writable attrs mask to nfsd4_decode_fattrfs/nfsd/nfs4xdr.c+15 -60 replies
31/35nfsd: dynamically skip encoded fattr bitmap in _nfsd4_verifyfs/nfsd/nfs4proc.c+2 -10 replies
32/35nfsd41: support for 3-word long attribute bitmaskfs/nfsd/nfs4proc.c fs/nfsd/nfs4xdr.c include/linux/nfsd/nfsd.h +1 more+94 -260 replies
33/35nfsd41: SUPPATTR_EXCLCREAT attributefs/nfsd/nfs4xdr.c include/linux/nfs4.h include/linux/nfsd/nfsd.h+21 -20 replies
34/35nfsd41: CREATE_EXCLUSIVE4_1fs/nfsd/nfs4proc.c fs/nfsd/nfs4xdr.c include/linux/nfs4.h +1 more+43 -70 replies
35/35nfsd41: Documentation/filesystems/nfs41-server.txtDocumentation/filesystems/nfs41-server.txt+161 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/35] nfsd41-for-2.6.30 patches

The v3 series contains all non-backchannel patches in our nfsd41 series that were reordered before the bc ones.
All the review cleanups received so far are squashed in plus a few minor ones I made along the way, like eradicating CONFIG_NFSD_V4_1. These should have zero functional affect (please see diff at the end).

The series is available at
git://linux-nfs.org/~bhalevy/linux-pnfs.git nfsd41-for-2.6.30

The full series, including backchannel is under the nfsd41 branch (old nfsd41 branch renamed nfsd41-all as it's inline with all other -all branches)

Note that the nfs41 client patches for 2.6.30 are organized in a similar way. nfs41-for-2.6.30 contains all non-backchannel and nfs41 follows with the rest

Benny

[PATCH v3 01/35] nfsd: don't use the deferral service, return NFS4ERR_DELAY
[PATCH v3 02/35] nfs41: common protocol definitions
[PATCH v3 03/35] nfsd41: define nfs41 error codes
[PATCH v3 04/35] nfsd41: sessions basic data types
[PATCH v3 05/35] nfsd41: introduce nfs4_client cl_sessions list
[PATCH v3 06/35] nfsd41: release_session when client is expired
[PATCH v3 07/35] nfsd41: sessionid hashing
[PATCH v3 08/35] nfsd41: xdr infrastructure
[PATCH v3 09/35] nfsd41: proc stubs
[PATCH v3 10/35] nfsd41: exchange_id operation
[PATCH v3 11/35] nfsd41: match clientid establishment method
[PATCH v3 12/35] nfsd41: sequence operation
[PATCH v3 13/35] nfsd41: enforce NFS4ERR_SEQUENCE_POS operation order rules for minorversion != 0 only. [PATCH v3 14/35] nfsd41: DRC save, restore, and clear functions
[PATCH v3 15/35] nfsd41: hard page limit for DRC
[PATCH v3 16/35] nfsd41: nfsd DRC logic
[PATCH v3 17/35] nfsd41: clear DRC cache on free_session
[PATCH v3 18/35] nfsd41: create_session operation
[PATCH v3 19/35] nfsd41: Add a create session replay cache
[PATCH v3 20/35] nfsd41: non-page DRC for solo sequence responses
[PATCH v3 21/35] nfsd41: destroy_session operation
[PATCH v3 22/35] nfsd: pass nfsd4_compound_state* to nfs4_preprocess_{state,seq}id_op [PATCH v3 23/35] nfsd41: stateid handling
[PATCH v3 24/35] nfsd41: check encode size for sessions maxresponse cached
[PATCH v3 25/35] nfsd41: clientid handling
[PATCH v3 26/35] nfsd41: access_valid
[PATCH v3 27/35] nfsd41: add OPEN4_SHARE_ACCESS_WANT nfs4_stateid bmap
[PATCH v3 28/35] nfsd41: control nfsv4.1 svc via /proc/fs/nfsd/versions
[PATCH v3 29/35] nfsd41: provide support for minor version 1 at rpc level
[PATCH v3 30/35] nfsd41: pass writable attrs mask to nfsd4_decode_fattr
[PATCH v3 31/35] nfsd: dynamically skip encoded fattr bitmap in _nfsd4_verify
[PATCH v3 32/35] nfsd41: support for 3-word long attribute bitmask
[PATCH v3 33/35] nfsd41: SUPPATTR_EXCLCREAT attribute
[PATCH v3 34/35] nfsd41: CREATE_EXCLUSIVE4_1
[PATCH v3 35/35] nfsd41: Documentation/filesystems/nfs41-server.txt

git diff --stat -p nfsd41-for-2.6.30-2009-04-03-1 nfsd41

 include/linux/nfsd/nfsd.h |    6 +++---
 net/sunrpc/svcsock.c      |   15 ---------------
 net/sunrpc/xprtsock.c     |    8 --------
 3 files changed, 3 insertions(+), 26 deletions(-)
include/linux/nfsd/nfsd.h +3 -3
index 5494dcd..0ec4d14 100644
@@ -333,6 +333,9 @@ extern struct timeval	nfssvc_boot;
 #define NFSD_LEASE_TIME                 (nfs4_lease_time())
 #define NFSD_LAUNDROMAT_MINTIMEOUT      10   /* seconds */
 
+/* The percent of nr_free_buffer_pages used by the V4.1 server DRC */
+#define NFSD_DRC_SIZE_SHIFT	7
+
 /*
  * The following attributes are currently not supported by the NFSv4 server:
  *    ARCHIVE       (deprecated anyway)
@@ -374,9 +377,6 @@ extern struct timeval	nfssvc_boot;
 #define NFSD4_1_SUPPORTED_ATTRS_WORD2 \
 	(NFSD4_SUPPORTED_ATTRS_WORD2 | FATTR4_WORD2_SUPPATTR_EXCLCREAT)
 
-/* The percent of nr_free_buffer_pages used by the V4.1 server DRC */
-#define NFSD_DRC_SIZE_SHIFT	7
-
 static inline u32 nfsd_suppattrs0(u32 minorversion)
 {
 	return minorversion ? NFSD4_1_SUPPORTED_ATTRS_WORD0
net/sunrpc/svcsock.c +0 -15
index 90b2232..9d4e121 100644
@@ -791,9 +791,7 @@ static int svc_tcp_recvfrom(struct svc_rqst *rqstp)
 	int		len;
 	struct kvec *vec;
 	int pnum, vlen;
-#if defined(CONFIG_NFSD_V4_1)
 	struct rpc_rqst *req = NULL;
-#endif
 
 	dprintk("svc: tcp_recv %p data %d conn %d close %d\n",
 		svsk, test_bit(XPT_DATA, &svsk->sk_xprt.xpt_flags),
@@ -886,7 +884,6 @@ static int svc_tcp_recvfrom(struct svc_rqst *rqstp)
 		xid = *p++;
 		calldir = *p;
 
-#if defined(CONFIG_NFSD_V4_1)
 		if (calldir) {
 			/* REPLY */
 			if (svsk->sk_bc_xprt)
@@ -909,9 +906,6 @@ static int svc_tcp_recvfrom(struct svc_rqst *rqstp)
 		if (!calldir || !req)
 			vec[0] = rqstp->rq_arg.head[0];
 
-#else /* CONFIG_NFSD_V4_1 */
-		vec[0] = rqstp->rq_arg.head[0];
-#endif /* CONFIG_NFSD_V4_1 */
 		vec[0].iov_base += 8;
 		vec[0].iov_len -= 8;
 		len = svsk->sk_reclen - 8;
@@ -920,13 +914,9 @@ static int svc_tcp_recvfrom(struct svc_rqst *rqstp)
 
 	pnum = 1;
 	while (vlen < len) {
-#if defined(CONFIG_NFSD_V4_1)
 		vec[pnum].iov_base = (req) ?
 			page_address(req->rq_private_buf.pages[pnum - 1]) :
 			page_address(rqstp->rq_pages[pnum]);
-#else /* CONFIG_NFSD_V4_1 */
-		vec[pnum].iov_base = page_address(rqstp->rq_pages[pnum]);
-#endif /* CONFIG_NFSD_V4_1 */
 		vec[pnum].iov_len = PAGE_SIZE;
 		pnum++;
 		vlen += PAGE_SIZE;
@@ -943,13 +933,11 @@ static int svc_tcp_recvfrom(struct svc_rqst *rqstp)
 	 */
 	len += 8;
 
-#if defined(CONFIG_NFSD_V4_1)
 	if (req) {
 		xprt_complete_rqst(req->rq_task, len);
 		len = 0;
 		goto out;
 	}
-#endif /* CONFIG_NFSD_V4_1 */
 	dprintk("svc: TCP complete record (%d bytes)\n", len);
 	rqstp->rq_arg.len = len;
 	rqstp->rq_arg.page_base = 0;
@@ -963,10 +951,7 @@ static int svc_tcp_recvfrom(struct svc_rqst *rqstp)
 	rqstp->rq_xprt_ctxt   = NULL;
 	rqstp->rq_prot	      = IPPROTO_TCP;
 
-#if defined(CONFIG_NFSD_V4_1)
 out:
-#endif /* CONFIG_NFSD_V4_1 */
-
 	/* Reset TCP read info */
 	svsk->sk_reclen = 0;
 	svsk->sk_tcplen = 0;
net/sunrpc/xprtsock.c +0 -8
index f90c7c3..81842ae 100644
@@ -1885,7 +1885,6 @@ static void xs_tcp_print_stats(struct rpc_xprt *xprt, struct seq_file *seq)
 			xprt->stat.bklog_u);
 }
 
-#if defined(CONFIG_NFSD_V4_1)
 /*
  * The connect worker for the backchannel
  * This should never be called as we should never need to connect
@@ -2098,7 +2097,6 @@ static void bc_destroy(struct rpc_xprt *xprt)
 {
 	return;
 }
-#endif /* CONFIG_NFSD_V4_1 */
 
 static struct rpc_xprt_ops xs_udp_ops = {
 	.set_buffer_size	= xs_udp_set_buffer_size,
@@ -2133,7 +2131,6 @@ static struct rpc_xprt_ops xs_tcp_ops = {
 	.print_stats		= xs_tcp_print_stats,
 };
 
-#if defined(CONFIG_NFSD_V4_1)
 /*
  * The rpc_xprt_ops for the server backchannel
  */
@@ -2151,7 +2148,6 @@ static struct rpc_xprt_ops bc_tcp_ops = {
 	.destroy		= bc_destroy,
 	.print_stats		= xs_tcp_print_stats,
 };
-#endif /* CONFIG_NFSD_V4_1 */
 
 static struct rpc_xprt *xs_setup_xprt(struct xprt_create *args,
 				      unsigned int slot_table_size)
@@ -2285,7 +2281,6 @@ static struct rpc_xprt *xs_setup_tcp(struct xprt_create *args)
 	xprt->tsh_size = sizeof(rpc_fraghdr) / sizeof(u32);
 	xprt->max_payload = RPC_MAX_FRAGMENT_SIZE;
 
-#ifdef CONFIG_NFSD_V4_1
 	if (args->bc_sock) {
 		/* backchannel */
 		xprt_set_bound(xprt);
@@ -2309,7 +2304,6 @@ static struct rpc_xprt *xs_setup_tcp(struct xprt_create *args)
 
 		goto next;
 	}
-#endif /* CONFIG_NFSD_V4_1 */
 
 	switch (addr->sa_family) {
 	case AF_INET:
@@ -2332,9 +2326,7 @@ static struct rpc_xprt *xs_setup_tcp(struct xprt_create *args)
 
 	xprt->ops = &xs_tcp_ops;
 
-#ifdef CONFIG_NFSD_V4_1
 next:
-#endif /* CONFIG_NFSD_V4_1 */
 	xprt->timeout = &xs_tcp_default_timeout;
 
 	switch (addr->sa_family) {