For the experimental NFSv4 server's dumplocks operation, add the
MPSAFE flag to cn_flags so that it doesn't panic. The panics weren't seen since nfsdumpstate(8) is broken for the "-l" case, so this was never done. I'll do a separate commit to fix nfsdumpstate(8). Submitted by: zack.kirsch at isilon.com MFC after: 2 weeks
This commit is contained in:
parent
b18d9d4b15
commit
66c0f45a3d
@ -210,7 +210,8 @@ nfsrv_lookupfilename(struct nameidata *ndp, char *fname, NFSPROC_T *p)
|
||||
{
|
||||
int error;
|
||||
|
||||
NDINIT(ndp, LOOKUP, FOLLOW | LOCKLEAF, UIO_USERSPACE, fname, p);
|
||||
NDINIT(ndp, LOOKUP, FOLLOW | LOCKLEAF | MPSAFE, UIO_USERSPACE, fname,
|
||||
p);
|
||||
error = namei(ndp);
|
||||
if (!error) {
|
||||
NDFREE(ndp, NDF_ONLY_PNBUF);
|
||||
|
Loading…
x
Reference in New Issue
Block a user