Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Jan 2019 17:39:45 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r343586 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Message-ID:  <201901301739.x0UHdjfC062420@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Wed Jan 30 17:39:44 2019
New Revision: 343586
URL: https://svnweb.freebsd.org/changeset/base/343586

Log:
  Remove BIO_ORDERED flag from BIO_FLUSH sent by ZFS.
  
  In all cases where ZFS sends BIO_FLUSH, it first waits for all related
  writes to complete, so its BIO_FLUSH does not care about strict ordering.
  Removal of one makes life much easier at least for NVMe driver, which
  hardware has no concept of request ordering, relying completely on software.
  
  MFC after:	2 weeks
  Sponsored by:	iXsystems, Inc.

Modified:
  head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c

Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c	Wed Jan 30 17:24:50 2019	(r343585)
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c	Wed Jan 30 17:39:44 2019	(r343586)
@@ -1097,7 +1097,6 @@ sendreq:
 		break;
 	case ZIO_TYPE_IOCTL:
 		bp->bio_cmd = BIO_FLUSH;
-		bp->bio_flags |= BIO_ORDERED;
 		bp->bio_data = NULL;
 		bp->bio_offset = cp->provider->mediasize;
 		bp->bio_length = 0;



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