From: Trond Myklebust Date: Sun, 8 Oct 2006 18:33:24 +0000 (-0400) Subject: [PATCH] NFS: Fix typo in nfs_get_client() X-Git-Tag: v2.6.19-rc2~268 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ca4aa09635516258f158a7bc1594a794e4c34864;p=platform%2Fkernel%2Flinux-exynos.git [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 Signed-off-by: Linus Torvalds --- diff --git a/fs/nfs/client.c b/fs/nfs/client.c index 6e4e48c..d2533e2 100644 --- a/fs/nfs/client.c +++ b/fs/nfs/client.c @@ -330,7 +330,7 @@ found_client: 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(); }