diff options
author | Kevin Wolf <kwolf@redhat.com> | 2016-03-18 19:01:41 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2016-03-30 12:16:03 +0200 |
commit | 09cf9db1bcd60d9889b774925ba7058286d35412 (patch) | |
tree | d98287953aec5ba2676fc377c007f34a54829028 /block/mirror.c | |
parent | 61de4c680846167e01d7ba42bf787f8d1d80bf5e (diff) |
block: Remove bdrv_(set_)enable_write_cache()
The only remaining users were block jobs (mirror and backup) which
unconditionally enabled WCE on the BlockBackend of the target image. As
these block jobs don't go through BlockBackend for their I/O requests,
they aren't affected by this setting anyway but always get a writeback
mode, so that call can be removed.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'block/mirror.c')
-rw-r--r-- | block/mirror.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/block/mirror.c b/block/mirror.c index 7bfd0d2996..f64db1a69b 100644 --- a/block/mirror.c +++ b/block/mirror.c @@ -856,7 +856,6 @@ static void mirror_start_job(BlockDriverState *bs, BlockDriverState *target, bdrv_op_block_all(s->target, s->common.blocker); - bdrv_set_enable_write_cache(s->target, true); if (s->target->blk) { blk_set_on_error(s->target->blk, on_target_error, on_target_error); blk_iostatus_enable(s->target->blk); |