revision 1.40 backed out the removal of PCATCH in a tsleep allowing

an infinite loop if a signal is delivered here.
remove it again, this still ought to be revisited as the error should
probably be returned.
This commit is contained in:
Alfred Perlstein 2000-01-10 10:24:47 +00:00
parent afb5459b5d
commit a9dd30b96b

View File

@ -403,7 +403,7 @@ launch_requests(struct request *rq, int reviveok)
s = splbio(); /* lock out the interrupt routines */
while ((drive->active >= DRIVE_MAXACTIVE) /* it has too much to do already, */
||(vinum_conf.active >= VINUM_MAXACTIVE)) /* or too many requests globally */
tsleep(&launch_requests, PRIBIO | PCATCH, "vinbuf", 0); /* wait for it to subside */
tsleep(&launch_requests, PRIBIO, "vinbuf", 0); /* wait for it to subside */
drive->active++;
if (drive->active >= drive->maxactive)
drive->maxactive = drive->active;