svn commit: r344072 - stable/11/sys/kern
Alexander Motin
mav at FreeBSD.org
Wed Feb 13 00:35:10 UTC 2019
Author: mav
Date: Wed Feb 13 00:35:09 2019
New Revision: 344072
URL: https://svnweb.freebsd.org/changeset/base/344072
Log:
MFC r343585: Only sort requests of types that have concept of offset.
Other types, such as BIO_FLUSH or BIO_ZONE, or especially new/unknown ones,
may imply some degree of ordering even if strict ordering is not requested
explicitly.
Modified:
stable/11/sys/kern/subr_disk.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/kern/subr_disk.c
==============================================================================
--- stable/11/sys/kern/subr_disk.c Wed Feb 13 00:33:01 2019 (r344071)
+++ stable/11/sys/kern/subr_disk.c Wed Feb 13 00:35:09 2019 (r344072)
@@ -246,6 +246,17 @@ bioq_disksort(struct bio_queue_head *head, struct bio
return;
}
+ /*
+ * We should only sort requests of types that have concept of offset.
+ * Other types, such as BIO_FLUSH or BIO_ZONE, may imply some degree
+ * of ordering even if strict ordering is not requested explicitly.
+ */
+ if (bp->bio_cmd != BIO_READ && bp->bio_cmd != BIO_WRITE &&
+ bp->bio_cmd != BIO_DELETE) {
+ bioq_insert_tail(head, bp);
+ return;
+ }
+
prev = NULL;
key = bioq_bio_key(head, bp);
cur = TAILQ_FIRST(&head->queue);
More information about the svn-src-stable-11
mailing list