浏览代码

NFS: Remove incorrect BUG_ON in nfs_found_client

It is perfectly valid for nfs_get_client() to return a nfs_client that
is in the process of setting up the NFSv4.1 session.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Trond Myklebust 13 年之前
父节点
当前提交
f07936f2c4
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      fs/nfs/client.c

+ 0 - 2
fs/nfs/client.c

@@ -544,8 +544,6 @@ nfs_found_client(const struct nfs_client_initdata *cl_init,
 
 
 	smp_rmb();
 	smp_rmb();
 
 
-	BUG_ON(clp->cl_cons_state != NFS_CS_READY);
-
 	dprintk("<-- %s found nfs_client %p for %s\n",
 	dprintk("<-- %s found nfs_client %p for %s\n",
 		__func__, clp, cl_init->hostname ?: "");
 		__func__, clp, cl_init->hostname ?: "");
 	return clp;
 	return clp;