aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/client.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2006-10-08 14:33:24 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-10-08 15:07:03 -0400
commitca4aa09635516258f158a7bc1594a794e4c34864 (patch)
tree7b8632778a068ee083e463266a72530d0297fa04 /fs/nfs/client.c
parentf1d08f71974dcf68ce4510a2dfaeb798b05df2c0 (diff)
[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>
Diffstat (limited to 'fs/nfs/client.c')
-rw-r--r--fs/nfs/client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/client.c b/fs/nfs/client.c
index 6e4e48c5092a..d2533e214255 100644
--- a/fs/nfs/client.c
+++ b/fs/nfs/client.c
@@ -330,7 +330,7 @@ found_client:
330 for (;;) { 330 for (;;) {
331 set_current_state(TASK_INTERRUPTIBLE); 331 set_current_state(TASK_INTERRUPTIBLE);
332 if (signal_pending(current) || 332 if (signal_pending(current) ||
333 clp->cl_cons_state > NFS_CS_READY) 333 clp->cl_cons_state != NFS_CS_INITING)
334 break; 334 break;
335 schedule(); 335 schedule();
336 } 336 }