git: e3d92d4cb811 - main - cam iosched: Update comment for when we schedule writes.

From: Warner Losh <imp_at_FreeBSD.org>
Date: Wed, 23 Feb 2022 23:21:53 UTC
The branch main has been updated by imp:

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

commit e3d92d4cb811006688bb18ba35bfbe6e1f119893
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-02-23 23:21:27 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-02-23 23:21:27 +0000

    cam iosched: Update comment for when we schedule writes.
    
    Sponsored by:           Netflix
---
 sys/cam/cam_iosched.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/sys/cam/cam_iosched.c b/sys/cam/cam_iosched.c
index 4d584dc160a3..5b5e375cc8e2 100644
--- a/sys/cam/cam_iosched.c
+++ b/sys/cam/cam_iosched.c
@@ -1518,8 +1518,9 @@ cam_iosched_next_bio(struct cam_iosched_softc *isc)
 
 #ifdef CAM_IOSCHED_DYNAMIC
 	/*
-	 * See if we have any pending writes, and room in the queue for them,
-	 * and if so, those are next.
+	 * See if we have any pending writes, room in the queue for them,
+	 * and no pending reads (unless we've scheduled too many).
+	 * if so, those are next.
 	 */
 	if (do_dynamic_iosched) {
 		if ((bp = cam_iosched_get_write(isc)) != NULL)