nfs: allow blocking locks to be awoken by lock callbacks
[muen/linux.git] / fs / nfs / nfs4client.c
index a2c9654d018f3c115ce3b821576aea9cd850faeb..074ac7131459ebc378ef3a1cf50244ff758f2a88 100644 (file)
@@ -199,6 +199,9 @@ struct nfs_client *nfs4_alloc_client(const struct nfs_client_initdata *cl_init)
        clp->cl_minorversion = cl_init->minorversion;
        clp->cl_mvops = nfs_v4_minor_ops[cl_init->minorversion];
        clp->cl_mig_gen = 1;
+#if IS_ENABLED(CONFIG_NFS_V4_1)
+       init_waitqueue_head(&clp->cl_lock_waitq);
+#endif
        return clp;
 
 error: