s/Danglish/English/
Some style issues. Change the timeout to be hz/10 instead of hz. Brucification by: bde.
This commit is contained in:
parent
e9a6d3b44c
commit
f986355c0e
@ -2819,18 +2819,19 @@ biodone(struct bio *bp)
|
||||
|
||||
/*
|
||||
* Wait for a BIO to finish.
|
||||
* XXX: For now resort to a timeout, the optimal locking (if any) for this
|
||||
* case is not at this point obvious.
|
||||
*
|
||||
* XXX: resort to a timeout for now. The optimal locking (if any) for this
|
||||
* case is not yet clear.
|
||||
*/
|
||||
int
|
||||
biowait(struct bio *bp, const char *wchan)
|
||||
{
|
||||
|
||||
while ((bp->bio_flags & BIO_DONE) == 0)
|
||||
msleep(bp, NULL, 0, wchan, hz);
|
||||
msleep(bp, NULL, PRIBIO, wchan, hz / 10);
|
||||
if (!(bp->bio_flags & BIO_ERROR))
|
||||
return (0);
|
||||
if (bp->bio_error)
|
||||
if (bp->bio_error != 0)
|
||||
return (bp->bio_error);
|
||||
return (EIO);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user