Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Sep 2013 09:24:41 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r255551 - stable/9/sys/cam/ctl
Message-ID:  <201309140924.r8E9OfQ3004628@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Sat Sep 14 09:24:40 2013
New Revision: 255551
URL: http://svnweb.freebsd.org/changeset/base/255551

Log:
  MFC r249194 (by trasz):
  Make SYNCHRONIZE CACHE work with LUNs backed by device files (as opposed
  to regular files, which already worked fine).  With this change, it's no
  longer neccessary to use "ctladm realsync off" workaround.

Modified:
  stable/9/sys/cam/ctl/ctl_backend_block.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/cam/ctl/ctl_backend_block.c
==============================================================================
--- stable/9/sys/cam/ctl/ctl_backend_block.c	Sat Sep 14 09:19:27 2013	(r255550)
+++ stable/9/sys/cam/ctl/ctl_backend_block.c	Sat Sep 14 09:24:40 2013	(r255551)
@@ -956,6 +956,7 @@ ctl_be_block_cw_dispatch(struct ctl_be_b
 	switch (io->scsiio.cdb[0]) {
 	case SYNCHRONIZE_CACHE:
 	case SYNCHRONIZE_CACHE_16:
+		beio->bio_cmd = BIO_FLUSH;
 		beio->ds_trans_type = DEVSTAT_NO_DATA;
 		beio->ds_tag_type = DEVSTAT_TAG_ORDERED;
 		beio->io_len = 0;



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