Fix a serious bug in cache_inefficient_scan() related to its use of
authorMatthew Dillon <dillon@dragonflybsd.org>
Sat, 27 Aug 2005 00:36:43 +0000 (00:36 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sat, 27 Aug 2005 00:36:43 +0000 (00:36 +0000)
commit4d22f42a80010cd67954fe526e67768fa380eda8
tree15cf278772151e8c0f06aa3afcffa19c3ef7fab5
parent26e7e19f68286c9487e1adccd02ff082f68d2bc4
Fix a serious bug in cache_inefficient_scan() related to its use of
VOP_READDIR().  VOP_READDIR() does very weird things when given both a
uio and cookies pointer.  Just give it a uio, instead.

This should fix a bug with the NFS server returning I/O errors to a
NFS client which is manipulating large directories.  The bug was preventing
the server from being able to resolve the namecache topology for a
disconnected directory vnode.

MFC in: 1 week.
sys/kern/vfs_cache.c