mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-25 16:13:17 +00:00
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.
This commit is contained in:
parent
16fac6c92a
commit
d2a0972d46
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=249194
@ -950,6 +950,7 @@ ctl_be_block_cw_dispatch(struct ctl_be_block_lun *be_lun,
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user