FreeBSD Bugzilla – Attachment 226290 Details for
Bug 257043
NFS nfsrpc_readdirplus() panic
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
cache_purge() when starting to read an NFS directory mounted "rdirplus"
rdirpanic.patch (text/plain), 648 bytes, created by
Rick Macklem
on 2021-07-07 23:58:33 UTC
(
hide
)
Description:
cache_purge() when starting to read an NFS directory mounted "rdirplus"
Filename:
MIME Type:
Creator:
Rick Macklem
Created:
2021-07-07 23:58:33 UTC
Size:
648 bytes
patch
obsolete
>--- sys/fs/nfsclient/nfs_clvnops.c.rdirpanic 2021-07-07 16:19:19.235692000 -0700 >+++ sys/fs/nfsclient/nfs_clvnops.c 2021-07-07 16:30:38.614660000 -0700 >@@ -2388,6 +2388,16 @@ nfs_readdir(struct vop_readdir_args *ap) > uio->uio_resid -= left; > > /* >+ * For readdirplus, if starting to read the directory, >+ * purge the name cache, since it will be reloaded by >+ * this directory read. >+ * This removes potentially stale name cache entries. >+ */ >+ if (uio->uio_offset == 0 && >+ (VFSTONFS(vp->v_mount)->nm_flag & NFSMNT_RDIRPLUS) != 0) >+ cache_purge(vp); >+ >+ /* > * Call ncl_bioread() to do the real work. > */ > tresid = uio->uio_resid;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 257043
: 226290