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:
Wuyang Chung 2021-10-17 11:25:27 +08:00 committed by Warner Losh
parent f7c32ed617
commit 8587d75255
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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);