[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: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Trond Myklebust 2006-10-08 14:33:24 -04:00 committed by Linus Torvalds
parent f1d08f7197
commit ca4aa09635

View File

@ -330,7 +330,7 @@ found_client:
for (;;) { for (;;) {
set_current_state(TASK_INTERRUPTIBLE); set_current_state(TASK_INTERRUPTIBLE);
if (signal_pending(current) || if (signal_pending(current) ||
clp->cl_cons_state > NFS_CS_READY) clp->cl_cons_state != NFS_CS_INITING)
break; break;
schedule(); schedule();
} }