Files
kernel-tenderloin-3.0/fs/nfs
Trond Myklebust c14acb19a4 NFS: Fix spurious readdir cookie loop messages
commit 0c0308066ca53fdf1423895f3a42838b67b3a5a8 upstream.

If the directory contents change, then we have to accept that the
file->f_pos value may shrink if we do a 'search-by-cookie'. In that
case, we should turn off the loop detection and let the NFS client
try to recover.

The patch also fixes a second loop detection bug by ensuring
that after turning on the ctx->duped flag, we read at least one new
cookie into ctx->dir_cookie before attempting to match with
ctx->dup_cookie.

Reported-by: Petr Vandrovec <petr@vandrovec.name>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-08-04 21:58:40 -07:00
..
2011-05-29 20:52:31 +03:00
2011-05-29 20:52:31 +03:00
2011-03-31 11:26:23 -03:00
2010-12-21 11:51:23 -05:00
2011-08-04 21:58:37 -07:00
2011-03-24 13:52:41 -04:00
2011-05-29 20:52:34 +03:00
2010-10-07 18:48:49 -04:00