]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] NFS: Fix typo in nfs_get_client()
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Sun, 8 Oct 2006 18:33:24 +0000 (14:33 -0400)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 8 Oct 2006 22:34:56 +0000 (15:34 -0700)
commitc4c701fc469253caa6ce806ff37de7809146d607
tree12a37ef553a394f6794af74fa5d46a74350fc02b
parentc9209730d5fba983b4c77f2acf363abbd3d31ff2
[PATCH] NFS: Fix typo in nfs_get_client()

Commit a80197c4f7c17da067a361f0d2113b38b9711b91 fixed waiting for the
structure to get initialised, but it is also possible to break out of
the loop while still in TASK_INTERRUPTIBLE.

Replace the whole thing by wait_event_interruptible, which is much more
readable, and doesn't suffer from these problems.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/nfs/client.c