git: 815c26d4e1b3 - stable/13 - Correct the name of the second parameter of biowait to wmesg

From: Warner Losh <imp_at_FreeBSD.org>
Date: Mon, 06 Dec 2021 15:56:23 UTC
The branch stable/13 has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=815c26d4e1b398eedca48706adcf87e31f7d0a9b

commit 815c26d4e1b398eedca48706adcf87e31f7d0a9b
Author:     Wuyang Chung <wy-chung@outlook.com>
AuthorDate: 2021-10-17 03:25:27 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2021-12-06 15:55:55 +0000

    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
    
    (cherry picked from commit 8587d752558ccdfa3e3a9aa95f3af50304a973dc)
---
 sys/kern/vfs_bio.c | 4 ++--
 sys/sys/bio.h      | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index d32cad8a7fd5..dc470512a066 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -4395,14 +4395,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);
diff --git a/sys/sys/bio.h b/sys/sys/bio.h
index 5fdf0ecbb917..88eeea427da3 100644
--- a/sys/sys/bio.h
+++ b/sys/sys/bio.h
@@ -151,7 +151,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);