Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 May 2022 22:54:15 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 1599fc904d35 - main - iosched: Move bio_next() inside of the CAM_IOSCHED_DYNAMIC ifdef
Message-ID:  <202205012254.241MsFqH008613@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=1599fc904d35cfa8eecad92818d1f4b55de6818f

commit 1599fc904d35cfa8eecad92818d1f4b55de6818f
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-05-01 22:53:13 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-05-01 22:54:15 +0000

    iosched: Move bio_next() inside of the CAM_IOSCHED_DYNAMIC ifdef
    
    bio_next() is only used by the dynamic scheduler, so move it under that
    ifdef.
    
    Sponsored by:           Netflix
---
 sys/cam/cam_iosched.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/cam/cam_iosched.c b/sys/cam/cam_iosched.c
index c1e11419856b..89e8a2f58212 100644
--- a/sys/cam/cam_iosched.c
+++ b/sys/cam/cam_iosched.c
@@ -1505,6 +1505,7 @@ cam_iosched_get_trim(struct cam_iosched_softc *isc)
 }
 
 
+#ifdef CAM_IOSCHED_DYNAMIC
 static struct bio *
 bio_next(struct bio *bp)
 {
@@ -1518,7 +1519,6 @@ bio_next(struct bio *bp)
 	return bp;
 }
 
-#ifdef CAM_IOSCHED_DYNAMIC
 static bool
 cam_iosched_rate_limited(struct iop_stats *ios)
 {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202205012254.241MsFqH008613>