Date: Sat, 6 Apr 2013 10:34:03 +0000 (UTC) From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r249194 - head/sys/cam/ctl Message-ID: <201304061034.r36AY3cX049402@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: trasz Date: Sat Apr 6 10:34:02 2013 New Revision: 249194 URL: http://svnweb.freebsd.org/changeset/base/249194 Log: 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: head/sys/cam/ctl/ctl_backend_block.c Modified: head/sys/cam/ctl/ctl_backend_block.c ============================================================================== --- head/sys/cam/ctl/ctl_backend_block.c Sat Apr 6 10:32:06 2013 (r249193) +++ head/sys/cam/ctl/ctl_backend_block.c Sat Apr 6 10:34:02 2013 (r249194) @@ -950,6 +950,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?201304061034.r36AY3cX049402>