Skip to content

Commit

Permalink
[PATCH] NFS: Fix typo in nfs_get_client()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Trond Myklebust authored and Linus Torvalds committed Oct 8, 2006
1 parent f1d08f7 commit ca4aa09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nfs/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit ca4aa09

Please sign in to comment.