Correct the name of the second parameter of biowait to wmesg
This parameter is passed directly to msleep, and the name of the msleep parameter is wmesg. Make them match. Pull Request: https://github.com/freebsd/freebsd-src/pull/557
This commit is contained in:
parent
f7c32ed617
commit
8587d75255
@ -4403,14 +4403,14 @@ biodone(struct bio *bp)
|
||||
* Wait for a BIO to finish.
|
||||
*/
|
||||
int
|
||||
biowait(struct bio *bp, const char *wchan)
|
||||
biowait(struct bio *bp, const char *wmesg)
|
||||
{
|
||||
struct mtx *mtxp;
|
||||
|
||||
mtxp = mtx_pool_find(mtxpool_sleep, bp);
|
||||
mtx_lock(mtxp);
|
||||
while ((bp->bio_flags & BIO_DONE) == 0)
|
||||
msleep(bp, mtxp, PRIBIO, wchan, 0);
|
||||
msleep(bp, mtxp, PRIBIO, wmesg, 0);
|
||||
mtx_unlock(mtxp);
|
||||
if (bp->bio_error != 0)
|
||||
return (bp->bio_error);
|
||||
|
@ -152,7 +152,7 @@ extern int bio_transient_maxcnt;
|
||||
|
||||
void biodone(struct bio *bp);
|
||||
void biofinish(struct bio *bp, struct devstat *stat, int error);
|
||||
int biowait(struct bio *bp, const char *wchan);
|
||||
int biowait(struct bio *bp, const char *wmesg);
|
||||
|
||||
#if defined(BUF_TRACKING) || defined(FULL_BUF_TRACKING)
|
||||
void biotrack_buf(struct bio *bp, const char *location);
|
||||
|
Loading…
x
Reference in New Issue
Block a user