Re: still nfs problems [Was: Linux 2.6.37-rc8]

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Trond Myklebust
Date: Thursday, December 30, 2010 - 11:24 am

On Thu, 2010-12-30 at 09:57 -0800, Linus Torvalds wrote: 

There is nothing we can do to protect ourselves against an infinite loop
if the server (or underlying filesystem) is breaking the rules w.r.t.
cookie generation. It should be possible to recover from all other
situations.
IOW: if the server generates non-unique cookies, then we're screwed.
Fixing that particular problem is impossible since it is basically a
variant of the halting problem.
That was why I asked which filesystem is being exported in my previous
reply.

The point of 'uncached_readdir' is to resolve a cookie that was
previously valid, but has since been invalidated; usually that is due to
the file having been unlinked. If it succeeds, it should result in a new
set of valid entries being posted to the 'filldir' callback, and a new
cookie being set in the filp->private (i.e. we should have made
progress). If it fails, we exit, as you can see.

Cheers
  Trond

-- 
Trond Myklebust
Linux NFS client maintainer

NetApp
Trond.Myklebust@netapp.com
www.netapp.com

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
still nfs problems [Was: Linux 2.6.37-rc8], Uwe Kleine-König, (Thu Dec 30, 10:14 am)
Re: still nfs problems [Was: Linux 2.6.37-rc8], Linus Torvalds, (Thu Dec 30, 10:57 am)
Re: still nfs problems [Was: Linux 2.6.37-rc8], Trond Myklebust, (Thu Dec 30, 10:59 am)
Re: still nfs problems [Was: Linux 2.6.37-rc8], Trond Myklebust, (Thu Dec 30, 11:24 am)
Re: still nfs problems [Was: Linux 2.6.37-rc8], Linus Torvalds, (Thu Dec 30, 11:50 am)
Re: still nfs problems [Was: Linux 2.6.37-rc8], Uwe Kleine-König, (Thu Dec 30, 12:18 pm)
Re: still nfs problems [Was: Linux 2.6.37-rc8], Trond Myklebust, (Thu Dec 30, 12:25 pm)
Re: still nfs problems [Was: Linux 2.6.37-rc8], Linus Torvalds, (Thu Dec 30, 1:02 pm)
Re: still nfs problems [Was: Linux 2.6.37-rc8], Uwe Kleine-König, (Mon Jan 3, 2:38 pm)
Re: still nfs problems [Was: Linux 2.6.37-rc8], Trond Myklebust, (Mon Jan 3, 5:22 pm)