svn commit: r255551 - stable/9/sys/cam/ctl
Alexander Motin
mav at FreeBSD.org
Sat Sep 14 09:24:41 UTC 2013
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;
More information about the svn-src-stable-9
mailing list