- Use incore() instead of gbincore() so we don't have to acquire the
vnode interlock.
This commit is contained in:
parent
8926aed697
commit
d3b85e1c8b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=103940
@ -3701,7 +3701,7 @@ nfsrv_commit(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
|
||||
* should not be set if B_INVAL is set there could be
|
||||
* a race here since we haven't locked the buffer).
|
||||
*/
|
||||
if ((bp = gbincore(vp, lblkno)) != NULL &&
|
||||
if ((bp = incore(vp, lblkno)) != NULL &&
|
||||
(bp->b_flags & (B_DELWRI|B_INVAL)) == B_DELWRI) {
|
||||
if (BUF_LOCK(bp, LK_EXCLUSIVE | LK_NOWAIT)) {
|
||||
BUF_LOCK(bp, LK_EXCLUSIVE | LK_SLEEPFAIL);
|
||||
|
Loading…
Reference in New Issue
Block a user