Reverse MFC of revision 1.5.2.7:

Remove a rather embarrassing race condition.

Egged-on-by:	alfred
This commit is contained in:
Greg Lehey 1999-09-03 01:37:26 +00:00
parent 14c457c23f
commit 1fa2fb7bf2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=50821

View File

@ -247,10 +247,8 @@ lockrange(daddr_t stripe, struct buf *bp, struct plex *plex)
logrq(loginfo_lockwait, (union rqinfou) &info, bp);
}
#endif
splx(s);
tsleep((void *) lock->stripe, PRIBIO | PCATCH, "vrlock", 2 * hz);
plex->lockwaits++; /* waited one more time */
s = splbio();
}
break; /* out of the inner level loop */
}