mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-12 14:29:28 +00:00
Check return value of tsleep(). I've checked of all call points -
there does not seem to be a problem with this. PR: kern/8732 Analysis by: David G Andersen <danderse@cs.utah.edu> Tested by: Alfred Perlstein <bright@hotjobs.com>
This commit is contained in:
parent
db878ba480
commit
29c98cd8bf
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=41995
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95
|
||||
* $Id: vfs_subr.c,v 1.174 1998/12/04 22:54:51 archie Exp $
|
||||
* $Id: vfs_subr.c,v 1.175 1998/12/21 23:38:33 eivind Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -579,9 +579,12 @@ vinvalbuf(vp, flags, cred, p, slpflag, slptimeo)
|
||||
s = splbio();
|
||||
while (vp->v_numoutput) {
|
||||
vp->v_flag |= VBWAIT;
|
||||
tsleep((caddr_t)&vp->v_numoutput,
|
||||
slpflag | (PRIBIO + 1),
|
||||
"vinvlbuf", slptimeo);
|
||||
error = tsleep((caddr_t)&vp->v_numoutput,
|
||||
slpflag | (PRIBIO + 1), "vinvlbuf", slptimeo);
|
||||
if (error) {
|
||||
splx(s);
|
||||
return (error);
|
||||
}
|
||||
}
|
||||
if (!TAILQ_EMPTY(&vp->v_dirtyblkhd)) {
|
||||
splx(s);
|
||||
|
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95
|
||||
* $Id: vfs_subr.c,v 1.174 1998/12/04 22:54:51 archie Exp $
|
||||
* $Id: vfs_subr.c,v 1.175 1998/12/21 23:38:33 eivind Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -579,9 +579,12 @@ vinvalbuf(vp, flags, cred, p, slpflag, slptimeo)
|
||||
s = splbio();
|
||||
while (vp->v_numoutput) {
|
||||
vp->v_flag |= VBWAIT;
|
||||
tsleep((caddr_t)&vp->v_numoutput,
|
||||
slpflag | (PRIBIO + 1),
|
||||
"vinvlbuf", slptimeo);
|
||||
error = tsleep((caddr_t)&vp->v_numoutput,
|
||||
slpflag | (PRIBIO + 1), "vinvlbuf", slptimeo);
|
||||
if (error) {
|
||||
splx(s);
|
||||
return (error);
|
||||
}
|
||||
}
|
||||
if (!TAILQ_EMPTY(&vp->v_dirtyblkhd)) {
|
||||
splx(s);
|
||||
|
Loading…
Reference in New Issue
Block a user