svn commit: r326796 - head/sys/geom/mirror
Mark Johnston
markj at FreeBSD.org
Tue Dec 12 17:24:31 UTC 2017
Author: markj
Date: Tue Dec 12 17:24:30 2017
New Revision: 326796
URL: https://svnweb.freebsd.org/changeset/base/326796
Log:
Decrement sc_writes when BIO_DELETE requests complete.
Otherwise a gmirror that has received a BIO_DELETE request will never be
marked clean (unless sc_writes overflows).
MFC after: 1 week
Sponsored by: Dell EMC Isilon
Modified:
head/sys/geom/mirror/g_mirror.c
Modified: head/sys/geom/mirror/g_mirror.c
==============================================================================
--- head/sys/geom/mirror/g_mirror.c Tue Dec 12 12:59:04 2017 (r326795)
+++ head/sys/geom/mirror/g_mirror.c Tue Dec 12 17:24:30 2017 (r326796)
@@ -937,7 +937,7 @@ g_mirror_regular_request(struct bio *bp)
pbp = bp->bio_parent;
sc = pbp->bio_to->private;
bp->bio_from->index--;
- if (bp->bio_cmd == BIO_WRITE)
+ if (bp->bio_cmd == BIO_WRITE || bp->bio_cmd == BIO_DELETE)
sc->sc_writes--;
disk = bp->bio_from->private;
if (disk == NULL) {
More information about the svn-src-all
mailing list