To be used for serializing nfs41 callbacks. Signed-off-by: Benny Halevy <bhalevy@xxxxxxxxxxx> --- fs/nfsd/nfs4state.c | 1 + include/linux/nfsd/state.h | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index edac97a..9377ad0 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c @@ -625,6 +625,7 @@ static struct nfs4_client *create_client(struct xdr_netobj name, char *recdir) INIT_LIST_HEAD(&clp->cl_delegations); #if defined(CONFIG_NFSD_V4_1) INIT_LIST_HEAD(&clp->cl_sessions); + mutex_init(&clp->cl_cb_mutex); #endif /* CONFIG_NFSD_V4_1 */ INIT_LIST_HEAD(&clp->cl_lru); return clp; diff --git a/include/linux/nfsd/state.h b/include/linux/nfsd/state.h index 918adde..eb8d55c 100644 --- a/include/linux/nfsd/state.h +++ b/include/linux/nfsd/state.h @@ -221,6 +221,7 @@ struct nfs4_client { nfs41_sessionid cl_sessionid; struct svc_xprt *cl_cb_xprt; /* 4.1 callback transport */ + struct mutex cl_cb_mutex; #endif /* CONFIG_NFSD_V4_1 */ }; -- 1.6.0.2 -- 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