NFS: Prevent the mount code from looping forever on broken exports
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 16 Apr 2010 20:22:52 +0000 (16:22 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 14 May 2010 19:09:28 +0000 (15:09 -0400)
commitce587e07ba2e25b5c9d286849885b82676661f3e
tree5bb91822d82fa9a26f7846edcc48bf01fad4411f
parent6e94d62993cb79397856f3330577917ca79cffa2
NFS: Prevent the mount code from looping forever on broken exports

Keep a global count of how many referrals that the current task has
traversed on a path lookup. Return ELOOP if the count exceeds
MAX_NESTED_LINKS.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/super.c