提交 ca4aa096 编写于 作者: T Trond Myklebust 提交者: Linus Torvalds

[PATCH] NFS: Fix typo in nfs_get_client()

NFS_CS_INITING > NFS_CS_READY, so instead of waiting for the structure to
get initialised, we currently immediately jump out of the loop without ever
sleeping.
Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 f1d08f71
......@@ -330,7 +330,7 @@ static struct nfs_client *nfs_get_client(const char *hostname,
for (;;) {
set_current_state(TASK_INTERRUPTIBLE);
if (signal_pending(current) ||
clp->cl_cons_state > NFS_CS_READY)
clp->cl_cons_state != NFS_CS_INITING)
break;
schedule();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册