]> rtime.felk.cvut.cz Git - can-eth-gw-linux.git/commitdiff
nfsd4: fix exchange_id to return confirm flag
authorJ. Bruce Fields <bfields@redhat.com>
Sat, 26 May 2012 01:24:40 +0000 (21:24 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 1 Jun 2012 00:30:21 +0000 (20:30 -0400)
Otherwise nfsd4_set_ex_flags writes over the return flags.

Reported-by: Bryan Schumaker <bjschuma@netapp.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c

index e4d9b56a770a670529ded3d7b114b3e7c2f5459d..83a68983aa26ab26755d8ca70b4d7e850e194c1b 100644 (file)
@@ -1617,7 +1617,7 @@ nfsd4_exchange_id(struct svc_rqst *rqstp,
                        goto expire_client;
                }
                if (verfs_match) { /* case 2 */
-                       exid->flags |= EXCHGID4_FLAG_CONFIRMED_R;
+                       conf->cl_exchange_flags |= EXCHGID4_FLAG_CONFIRMED_R;
                        new = conf;
                        goto out_copy;
                }